Forum Moderators: goodroi
Although G is smart enough to understand that www.mysite.com
is the same with mysite.com its still a good Idea to have a redirect like this on top of the htaccess file:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^mysite.com
RewriteRule (.*) [mysite.com...] [R=301,L]
Should I do this for the /index.html version to the non /index.html version?
I see that google has the [google.com...]
but not the [google.com...] version.
Any thoughts on this?
Regards,
Radu
Jim
And sorry for the post :)
If anyone will have the same question as me, this is the answer:
RewriteCond %{THE_REQUEST} ^.*\/index\.html?
RewriteRule ^(.*)index\.html?$ [mysite.com...] [R=301,L]