Bartman
Power Member
- Apr 24, 2010
- 569
- 131
hi
A long time ago, I modified my httaccess to redirect http://mysite.com to http://www.mysite.com
also, I made another modification so that any page that is not found is redirected to homepage.
are these 2 things search engine friendly?
here are the codes in my htaccess, I really dont understand these, and i dont remember where i found them from:
RewriteEngine on
rewritecond %{http_host} ^mysite.com [nc]
rewriterule ^(.*)$ http://www.mysite.com/$1 [r=301,nc]
RewriteCond %{THE_REQUEST} ^.*\/index\.html?
RewriteRule ^(.*)index\.html?$ http://www.mysite.com/$1 [R=301,L]
A long time ago, I modified my httaccess to redirect http://mysite.com to http://www.mysite.com
also, I made another modification so that any page that is not found is redirected to homepage.
are these 2 things search engine friendly?
here are the codes in my htaccess, I really dont understand these, and i dont remember where i found them from:
RewriteEngine on
rewritecond %{http_host} ^mysite.com [nc]
rewriterule ^(.*)$ http://www.mysite.com/$1 [r=301,nc]
RewriteCond %{THE_REQUEST} ^.*\/index\.html?
RewriteRule ^(.*)index\.html?$ http://www.mysite.com/$1 [R=301,L]