Search code examples
.htaccessno-www

Is the www subdomain good practice?


I know it is good practice to keep your website entirely 'http://www' or http://, and i'm also aware the www is just a subdomain.

The main question I have is Which one of these would be the best choice? I'm configuring an htaccess for one of my servers right now, and can't decide to redirect all traffic away or toward the www subdomain. (I know how to do that by the way.)

This is simply a best practice question. I see big guys like Google and Amazon both forward to the www subdomain, but to me it sounds unnecessary - I don't want to miss anything.

Thanks!


Solution

  • Funny, I spent way too much time researching this for one of my companies websites last year. The conclusion I came to is that it doesn't matter so long as you redirect one to the other (users can find you at either version). For the last 10 years I have always used the www subdomain. Starting last year all my new projects are without it since it is unnecessary--may as well save the 4 characters.