Is This 301 redirection correct??
-
Hello Everyone,
I have Added This in .htaccess.
Options +FollowSymlinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^domain.com$
RewriteRule (.*) http://www.domain.com/$1 [R=301,L]RewriteCond %{THE_REQUEST} ^./index.html
RewriteRule ^(.)index.html$ http://www.domain.com/$1 [R=301,L]ErrorDocument 404 /index.html
Is this Correct ?? or need any change,
please help,
thanx in advace .
-
Looks good to me, as long as you replaced domain.com with your own domain name and you're using an index.html file for the homepage.
-
Thanx Martin for your reply
Yes, i have Applied The same in .htaccess file but still my index.html page is not getting redirect to domain.com