Ads By Google

How redirect your domain to point to the one with the higher PageRank

After this round of PR update from Googles some bloggers found that their blogs has 2 different Page Ranks. One for the URL with the www prefix and another one without the www prefix. There is a way to redirect this so that everything points to the URL with the higher ranking. Lyndonmaxewell and Paris, these are the codes that I was talking about to solve your PR problem.

Create a .htaccess file with the below code, it will ensure that all requests coming in to domain.com will get redirected to www.domain.com and vice versa

I think most WordPress Users already have a .htaccess file in their root directory which can be accessed via your cPanel. Just make the neccassary changes in Notepad then copy and paste it there. Be sure you don’t touch anything that is already in the file if there is any.

To redirect domain.com to www.domain.com. ( Please REPLACE domain.com and www.newdomain.com with your actual domain name.)

RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !^www.domain.com$ [NC]
RewriteRule ^(.*)$ http://www.domain.com/$1 [L,R=301]

Vice Versa, to redirect www.domain.com to domain.com

RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !^domain.com$ [NC]
RewriteRule ^(.*)$ http://domain.com/$1 [L,R=301]

More info on redirection can be found at:

Webweaver

webconfs.com

Share This Post
Ads By Google
 

Free Updates

Subscribe to receive Free WordPress Theme Tips, Reviews and Discount Codes

Related WordPress Theme Tips

Domain RedirectAll those who came here following the link makanon.com, don’t be surprised or think that the domain have been hijacked. I just bought a new domain and have redirected all...

Part Two – Transferring The Pre-owned Domain To Your NameNow that you  have successfully bought a pre-owned domain, the next step would be to have that domain transferred to your name. If the domain is not an expired one...

10 Reasons NOT to host your own domainEveryone who has been blogging for sometime will tell you that you should buy and host your own domain.  They say it makes you look more  professional. They say you...

Step By Step Guide To Buying A Pre-Owned Domain – Part OneThe title might be a little misleading. First of all this is my first attempt in buying a pre-owned domain and second, I am a total noob when it comes...

How To Add A Domain To Your Hosting AccountJust bought a new domain and thought this would be a good opportunity to show those who are new to self hosting the simple way to add a new domain...

Those who found this page were searching for:

  1. wordpress namecard
  2. firebug wordpress
  3. powered by frugal blogigs
  4. redirect domain whit page rank
  5. how to change background color in wordpress
  6. wordpress changing color background to an image
  7. how to identify COLAUR CODING
  8. download thesis theme
  9. how to point a domain to wordpress theme
  10. wordpress how to add top banner adsense

4 Responses to “How redirect your domain to point to the one with the higher PageRank”

Read below or add a comment...

  1. lilian says:

    Gua cayang sama lu. You made the instructions so easy, not like what I read from John Chow until kepala pusing. My www has pr4 but chanlilian.net has pr 5

  2. ParisB says:

    wah! This is so technical! I’ll have to read it back slowly so I can work it out hehe… but thanks Ah Pek! Then again, I checked on another PR checker site and both www and without www showed the same PR. How ah?

  3. hey thanks for the advice! I’m off to temper with the settings. *grins.

  4. jocelyn says:

    hi ahpek,

    I am glad I found this. Thanks for the tips, it really works! :)