Pagerank Redirect

Thu 2006/03/30 06:20 JST
 7
 in Mac
1211 views

Google Pagerank is an important factor when it comes down to making money on the net. In general, the higher your Pagerank, the higher your results will show up in Google which usually leads to more traffic.

One of the factors that influences Pagerank is the number of incoming links you have to your site. The problem is when you have incoming links like http://www.yourcoolsite.com and http://yourcoolsite.com. What happens over time is that both of these URL's develop Pagerank even though its the same site.

To remedy this situation, you need to implement a 301 permanent redirect when people are brought to your site without the "www" (ie http://yourcoolsite.com). If you are running Apache and have permissions to use .htaccess files, all you have to do is to create a file called ".htaccess" (dont forget the dot at the beginning of the file) and slap in the following (dont forget to change the domain name ;-) and then dump it in your root directory.

ErrorDocument 404 http://www.yourcoolsite.com
RewriteEngine on
Options +FollowSymlinks
RewriteBase /
RewriteCond %{HTTP_HOST} !^www.yourcoolsite.com [NC]
RewriteRule ^(.*) http://www.yourcoolsite.com/$1 [L,R=301]

This will let Google know that http://yourcoolsite.com has been permanently moved and Pagerank should start to accumulate on http://www.yourcoolsite.com. You can try it out ;-)
I don't know how this can be achieved through html but if anybody knows, feel free to chip in.

If you are interested in reading about life in Japan, seeing photos taken daily around Tokyo, like Japanese subculture (anime, manga, figures, Dollfies) then you may want to start delving into the Japan or Figure categories for a start or have a gander at all photo articles.

If you don't have much time now, maybe subscribe to the RSS Feed, Twitter Feed or join the other readers in the FaceBook Page.
Alternatively, you may want to read more about the site.
If you are a regular reader then this message will probably annoy you each time - hide it forever.

This item was posted in the Mac category. You can see more of everything else or subscribe via RSS instead.
日本語で表示する 日本語で表示する
-Japan Probe - News from Japan (Subscribe)
-Akihabara News – Gadgetry from Japan (Subscribe)

  • Andrius
    Andrius in Tabasco, Mexico (Registered on 2007/11/18)
    Student, Blogger and Almost-Mac-and-PalmOS-Programmer
    http://www.tupalm.net

    You know Danny, i had a wordpress blog (www.tupalm.wordpress.com) and my pagerank was quite good (like 3 or 4, thats very good for me), and it is still good, BUT I moved from there to a hosted page (www.tupalm.ismywebsite.com) and I would love to know if there is any way to redirect the google requests and pageranks to the new site? (This info you have here works?).

    Sun 2007/11/18 18:57:03 JST (ID #64054)
    reply to Andrius's comment
  • Locksley
    Locksley in Nottingham, UK (Registered on 2007/11/28)
    Law student
    http://www.locksleynet.com

    Lifesaver lol! I remember seeing this post a long time ago, one quick search and it's still here luckily!

    I just changed my hosting and had to do all my re-writes all again. Cheers!

    Sat 2009/01/17 01:44:03 JST (ID #451175)
    reply to Locksley's comment

Currently being read