Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Should we automatically convert to or vice-versa on the server side? Because user may type the site address with without www. Which is better?

EDIT: I'm asking because I'm writing many rewrite rules, so sticking to one is good I guess.

share|improve this question

migrated from Sep 28 '10 at 16:00

This question came from our site for professional and enthusiast programmers.

Another interesting thread on the very same subject: What’s the point in having “www” in a URL? – WhiteWinterWolf Aug 25 '15 at 11:44
up vote 4 down vote accepted

there is absolutely no technical reason for adding www to your website. Its your choice to go with or without www because many popular websites with www like google, facebook. These websites redirect to

Also there are many websites without www like twitter, These redirect to

I think you can choose to add or omit www

One important point to note that

You should have a permanent redirect rule to redirect from to

This is because if you have show the content for both and

Your search engine ranking would be split into two halves instead of having 1000 ranks would have 500 Ranks and would have 500 ranks this spoils the popularity of the website.

Btw Search engines would understand the redirect rule.

share|improve this answer
+1: for search engine ranking – Lars Sep 28 '10 at 11:48
+1 for the ranking - excellent point. – Matt Sep 28 '10 at 16:21
The ranking issue was a valid point (for MSN particularly) as recently as three years ago, however, you won't see this issue with major search engines any longer. – danlefree Sep 29 '10 at 0:01
@abjeet why not consider accepting the answer ? – nepsdotin Sep 29 '10 at 11:31

Whichever you like. In the old days, was preferred in order to distinguish web servers from ftp and other servers. Nowadays nobody really cares about that anymore. It's still good to accept both with and without the www prefix, though.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.