Redirect Your Home Page To Website Root

To let google or any other search engine index only the home page of your website its required to redirect your index.php or index.htm or whatever it is to your website root for example http://www.yourwebsite.com. In this way a single version of your home page exists and page rank is not divided among different versions.

If you are running apache server appending below two lines to your .htaccess file will do the trick

RewriteCond %{THE_REQUEST} ^.*/index.php
RewriteRule ^(.*)index.php$ http://www.yourwebsite.com/$1 [R=301,L]

Remember to replace www.yourwebsite.com with your website address.

301 Redirect your home page to a new url

Additionally if you want to 301 redirect your home page to a different website

RewriteEngine on
RewriteRule ^$ http://www.yournewwebsiteurl.com [R=301,L]

 

Get Free Email Updates!

Signup now and receive free offers, discounts & coupon codes

I will never give away, trade or sell your email address. You can unsubscribe at any time.

Leave a Reply

Your email address will not be published. Required fields are marked *

CommentLuv badge