In setting up this site, I was recently struggling with the issue of how to redirect say
http://domain.com
to
http://sub.domain.com
without it causing an infinite recursion loop when visiting
http://sub.domain.com/foo
In the end my VirtualHosts config looked like this
NameVirtualHost *:80
<VirtualHost *:80>
[...]
