What is the difference between and ?

In most of the case you will get the same website. But if this is the actual scenario , why we redundantly use www, is it only for time consuming ?

Class B web development says that , no need to use www, we have to make a permanent redirection from to This is what they called no-www

Refer :

Then from where does this www come ? Lets ask to w3c. Their answer is, when you host a domain name, say, for easy understanding they used for their ftp server, and for their smtp server (mail server). So they used aliaas name www for webserver. Thus came into action.


Anyway www is there. Then for which domain we will give importance. or mere

For a normal users angle there is no difference, expect he have to type 3 more letter in browsers location bar. But think about search engines, such a google.

When they use urls for page rank and back link calculations (for getting the relavacy and importance of a url), they consider and as two different domain.

The page rank for your url may get splitted into two better www and no-www url. This is a big factor in SEO (Search Engine Optimization).

So the solution for this is, you have redirect one form to other permanently (301),

either to
or to

You can done this either via your apache’s configuration file or in .htaccess file in your web root.

The Rewrite rule for this redirection is as follows :

Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^
RewriteRule ^(.*)$$1 [R=permanent,L]


Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^
RewriteRule ^(.*)$$1 [R=permanent,L]

or in php you can do,

// Permanent redirection
header(“HTTP/1.1 301 Moved Permanently”);


Remember normal redirection never guide search engine by giving the information that the url is permanently shifted or moved