WWW or without WWW

Faraz Ahmed March 2, 2012 0

Are www or no www same?

Many people thinks that www and without www are same but its not true both are treated as separate websites (or www can be treated as sub domain) both www and no www can be pointed to different IP addresses. Usually making an A entry with same records in DNS settings points www same as without www.

What should we choose www or no www?

Search engine treats www and no www as different domains therefore page rank and page indexing of both domains can be different from each other therefore by search engine point of view website owner should consider having only single domain instead of two versions.

 

URL Redirection with WWW

RewriteEngine On
rewriteCond %{HTTP_HOST} ^example.com [NC]
rewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L]

URL Redirection without WWW

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

 

Why choose WWW

  1. Many professional organizations prefers www in their URL and URL with www preferred in stationary and other stuff.
  2. Many people types www with website in anyway.

 

Why don’t choose WWW

  1. It makes URL longer.
  2. Its unnecessary to use www when website can be viewed without using www.
  3. More search engine friendly.

 

So its upto your choice what you want to choose however its suggested to use website without www and redirect www to without www url.

 

Incoming search terms:

Related Posts:

Leave A Response »