Iskib
08-24-2007, 03:14 AM
I am using forums in the / forums with no landing page.
Now I know a 301 redirect is the best SEO friendly redirect using .htaccess
Redirect 301 /old/old.html http://www.you.com/new.html
I also want to redirect all http://mydomain.com to http://www.mydomain.com
I can do this with the .htaccess file using this code
RewriteEngine On
rewritecond %{http_host} ^yoursite.com
rewriteRule ^(.*) http://www.yoursite.com/$1 [R=301,L]
The question I have is can I use both like
RewriteEngine On
rewritecond %{http_host} ^yoursite.com
rewriteRule ^(.*) http://www.yoursite.com/$1 [R=301,L]
Redirect 301 /old/old.html http://www.you.com/forums
Thanks in advance
Now I know a 301 redirect is the best SEO friendly redirect using .htaccess
Redirect 301 /old/old.html http://www.you.com/new.html
I also want to redirect all http://mydomain.com to http://www.mydomain.com
I can do this with the .htaccess file using this code
RewriteEngine On
rewritecond %{http_host} ^yoursite.com
rewriteRule ^(.*) http://www.yoursite.com/$1 [R=301,L]
The question I have is can I use both like
RewriteEngine On
rewritecond %{http_host} ^yoursite.com
rewriteRule ^(.*) http://www.yoursite.com/$1 [R=301,L]
Redirect 301 /old/old.html http://www.you.com/forums
Thanks in advance