View Single Post
  #3 (permalink)  
Old 07-19-2007, 01:35 AM
hostBrain hostBrain is offline
WebProWorld Pro
 
Join Date: May 2007
Location: DataCenter
Posts: 169
hostBrain RepRank 1
Default Re: WWW vs No WWW in URL

Hi Peter,

Yes indeed, the first thing to do, is decide which you prefer. www or non-www
In the ole' days, servers were configured so you had to type in the www before the domain. This is no longer the case.

Personally, i prefer to not have the www. It's 3 less characters in the domain, so it's shorter and it's also 3 less words you have to verbally tell people.

If you are on apache server, you can take advantage of the .htaccess file in the root of your home directory.
Just create one with a text editor and insert the following.

To force your domain to use www
Quote:
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^.peterdrewvo.(.*)
RewriteRule ^(.*)$ http://www.peterdrewvo.com/$1 [R=301,L]
To force your domain to use non-www
Quote:
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www.peterdrewvo.(.*)
RewriteRule ^(.*)$ http://peterdrewvo.com/$1 [R=301,L]
__________________
----Don't Call Me Brian----
Reply With Quote