It still amazes me how many server admins fail to properly configure their web servers and dns so that foo.com works just as well as www.foo.com
On the other hand, there is a whole group of people who think that the ‘www’ is absolutely required, and even if you tell them to go to bar.foo.com, they will go to www.bar.foo.com, so make sure you set that up as well. It’s easy in Apache, just add a ServerAlias like so:
ServerName bar.foo.com ServerAlias www.bar.foo.com
A simple fix, and hopefully it will help prevent having to explain to people that you don’t need to type the ‘www’ part, just let them do it, it’s easier to fix things on the server than in people’s brains.
(And if you can’t make this fix on your server yourself, ask whoever maintains your server to make it for you.)
3 replies on “Website Tip #326”
And after you do that, redirect all www requests to the non-www domain as far from being absolutey required, www is absolutely unnecessary.
Good point Scott! no-www.org should have more info on how to do that.
Right! It would be a shame to write a popular article and not get as much cred as you deserve because you get split between www and no-www on social bookmarking sites.