Page is a not externally linkable
- WebmasterWorld
-- New To Web Development
---- Canonical problems?


trader - 5:40 pm on Sep 22, 2006 (gmt 0)

Thanks to some direct feedback from one of the Mods we decided to go to the non-www using htaccess for all our sites, even though it's much more common practice to forward to the www.

I did that for 2 reasons, one being since we have so many long domains it makes the url's shorter and look better, and it just seems to make sense since so many people no longer typein the www anyway, including myself.

Before doing that we check the current Page Rank. If the GPR is higher for the www version we do not forward to the non-www but that is relatively rare as most of the sites have the same PR for both versions. In fact, the non-www occasionally has better PR even though we never forwarded to the non-www in the past.

Here is the htaccess code we are using (which works well and seems simple vs some other methods):

Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www.name\.com [NC]
RewriteRule ^(.*)$ http://name.com/$1 [L,R=301]

ErrorDocument 404 http://name.com/index.html
ErrorDocument 401 http://name.com/index.html
ErrorDocument 402 http://name.com/index.html
ErrorDocument 400 http://name.com/index.html


Thread source:: http://www.webmasterworld.com/new_web_development/3092989.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com