Converting non www to www for SEO |
| Wednesday, 24 September 2008 13:56 |
|
Most people don't even realise this is an issue, but believe me it is. . .
Basically you site gains rank via people linking to it on google. Now the problem with this, is that if some people link to hardcorehomework.com, and others link to www.hardcorehomework.com. To you and I, both these things are exactly the same, but to google, these are 2 sites on different subdomains, and therefore they get different page rank.
The way around this is to divert all traffic from non-www urls directly to the www equivilant. This is done by creating a file in the root of your website, and calling it ".htaccess", no quotes. In this file you simply add these lines, and the problem goes away! :D RewriteEngine On RewriteCond %{HTTP_HOST} ^domain.com RewriteRule (.*) http://www.domain.com/$1 [R=301,L] |
| Last Updated ( Wednesday, 24 September 2008 14:16 ) |