logo
  You are not logged in Join Log In
Navigation
Log In
[join]

[lost]

 
User Info
 Post to programmabilities.post [at] blogger.com
blogroll

Programmabilities Blog

2006-07-22

 
PHP: Removing www
For some reason Google has a different PageRank for programmabilities.com and www.programmabilities.com. No big deal really, but it bothered me a bit. So I added this rule to .htaccess to fix it:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.programmabilities.com [NC]
RewriteRule ^(.*)$ http://programmabilities.com/$1 [R=301,L]
This way I got rid of the www part once and for all, which I also find nicer. I used a 301 Permanent redirect hoping Google will understand that a search for link:http://programmabilities.com/blog/ and a search for link:http://www.programmabilities.com/blog/ should return the same results.

Labels:

Bio
The power of a network increases at a rate in proportion to the square of the number of users on that network.Metcalfe's Law
I'm a legally Ordained Minister in the US with ULC. Donate love offerings to my Ministry here: tithe.
Archives
200601
200607
200608
200610
200611
200705
200706
200707
200708
200709
200711
200712
200802
200803
200805