var sidebar_align = 'right';
var content_container_margin = parseInt('350px');
var sidebar_width = parseInt('330px');
Advantages of auto redirect to www version of domain?
When setting up a domain, isn't it always beneficial to do a redirect, so for example, typing in:
redirects to the "www" version, or:
This cuts down on the number of hits (as http://mydomain.com/test.gif and http://www.mydomain.com/test.gif counts as 2 seperate hits), and also bandwidth transfer, as brower cache often treats the above two images as seperate images, doubling the bandwidth on them.
I guess my question is, are the above assumptions correct about the advantages of doing a redirect in this manner? Any disadvantages?
I'm not sure if your advantages are correct, but I don't see any disadvantages of not doing so other than if you are lazy (like me)
Actually a disadvantage could be the added "load" on the server redirecting the page. It's small, but it's still there.[/edit]
I don't see too many people typing in "http://DOMAINNAME.COM" too often unless it's absolutely required to leave that nearly automatic WWW off.
(Many people dont even know about any other kind of address other than WWW's for browsing and get confused when told to type in HTTP or FTP or anyhting else.)
When I type a URL, I always leave WWW. off because its more typing that usually isn't needed
That's a valid point, though the increase in load is very small, and there's definitely bandwidth reduction, based on my experience. Perhaps as much as 15%.
Originally posted by aragon
Actually a disadvantage could be the added "load" on the server redirecting the page. It's small, but it's still there.
It's more hassle to config. ServerAlias does the job.