I was wondering if anyone knew how to make any requests to my root domain (example.com) forward to the "www" subdomain (www.example.com).
Right now, both the root and www subdomain work fine, but I would prefer everyone to get pushed onto "www" (for port 80 only). I looked into using RedirectMatch in my .htaccess file, but it doesn't seem to have any concept of the domain/subdomain used to get to the server. This just causes an infinite redirect loop .
I looked into DNS, but as far as I can tell, this would redirect all traffic, not just port 80.
You might want to take any assumptions I have made with a grain of salt too. I could be totally wrong.
Any ideas?
Cheers,
Mike