Tuesday, 6 August 2013

Redirect URL's index page to nonindex page

Try to use this important htaccess code for redirecting an URL's index page to non index Url’s. this code is very very important for seo point of view

 RewriteCond %{THE_REQUEST} /index\.html [NC]
RewriteRule ^/?index\.html$ http://www.maindomain.com/$1 [R=301,L]

No comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...