Being around for 20 years means something's good in the linux world.
What's been around for 20 years? Apache and Linux are both in their teens.
And to answer the guys question, use ServerAlias, not mod_rewrite. Doing it the mod_rewrite way is a waste of cpu cycles. You'll also be better off using www.x.com as the servername and x.com as the alias.
Mostly we do non-www to www. because we also wait to pass any possible link weight to www. as well. And for that we need 301 redirect, not just a redirect. And the code BoyAlley gave do the job well.
Comment