Htaccess Redirect For Better Pagerank & Other Analytics

Written by in HTACCESS - Print This Post



.htaccess (hypertext access) redirect is very important to route all the traffic to one form of URL of their blog. It is best to use .htaccess redirect both in the case of humans and bots, as the bots and humans will be handling the URL for various purposes like linkback in case of humans or crawling in case of bots of Google and Microsoft. .htaccess redirect helps in maintaining a single format for your blog or website.

The Different forms of URL can hinder the Pagerank and other analytics, as they would take your blog or website in two different forms and rate it differently. The two most commonly seen formats are with WWW and without WWW , for example ;

http://www.domain.com

http://domain.com

The two formats will be differently handled and hence the linkbacks for humans and the URL for Google bots and Microsoft bots will not appear same. The solution for the above problem is to use .htaccess redirect.

Redirection from with www to without www can be achieved by creating a .htaccess file in your control panel root directory, this will usually be in the public_html in cpanel file manager and similarly in other Control panels like Plesk.

To redirect the with www URL to without www URL, edit the .htaccess file and insert the code given below and save:

## Redirect www.example.com to example.com.
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]









HBB RSS
Hello there! If you are new here, you might want to subscribe to the RSS feed for updates on this topic. You will also get instant access to 100+ HBB Guides & Tutorials.
If you wish to subscribe here via Email, then kindly click here.



Blogjunta is a portal of bloggers, Follow us at Twitter @blogjunta or at Facebook Blogjunta...Visit our website at BlogJunta


HBB has 669+ Awesome Contributors. [Join HBB].

HellBound Bloggers (HBB) is a part of Slashsquare Network.






13 Responses to “Htaccess Redirect For Better Pagerank & Other Analytics”

Leave a Reply


Comments Policy | Brand Your Comments | Do Follow Blog | Top Commentators Award


REFERENCE : 7 Tips To Be A Hero On Blog Commenting [HELPFUL]


Overall HellBound Bloggers (HBB) has 23,611 Genuine Comments and Yours Will Add More Value To It.




Previous Article:

Next Article:

  1. prabhakaran says:

    Useful. Will give a try!. Thanks

  2. Interesting read! Will do this for my site!

  3. blogjunta says:

    @prabhakaran & @raghunath….Please try…

  4. Umer says:

    Thanks for the useful seo tips

  5. Usman says:

    I think this redirect is hardly going to effect pagerank because google is highly selective in indexing new urls

    • blogjunta says:

      @usman….

      google will take your two Urls differently.. the new search engine algorithm, named caffiene is much better at indexing latest news..so dontworry about ur blog being new or something..if ur blog is new.. make sure u ping the google search engine to come visit your blog using pingomatic…

  6. Jasmine says:

    Good tips. I always prefer to have “www” on my domain. I think it looks more cute. :)

  7. Sharma says:

    I did same you say in tips. I use my domain with www and permanet redirect the non-www to www domain. Thanks to share it. I really enjoy post.

  8. Deepanshu says:

    yeah u r right….this duplicate url issu can create problems with google…..learnt abt this today only at some forum…well we can manage redirects (301) from server side so that it redirects to our preferred choice of domain..i also saw an option in google webmaster tools where we can specify which url google shud consider…..i m not sure which i m gonna do out of these 3 until i read more and get expert opinions :-P



Subscribe without commenting




COPYRIGHT © 2012 SLASHSQUARE NETWORK. REPRODUCTION WITHOUT EXPLICIT PERMISSION IS PROHIBITED. ALL RIGHTS RESERVED.

Slashsquare
Mobile Version · About Us · Contact Us · Subscription · Advertise · Review · Write For Us · Archives · Privacy Policy · Disclaimer
Loading...
ViperBarUp
ViperBarDown