Apache
Redirect Web Traffic to Another Sub-domain (e.g. www) or HTTP to HTTPS
Using the mod_rewrite module you can configure Apache to redirect web traffic from one sub-domain to another. Usually used to redirect a bare domain ( http://xensoft.com) to the www sub-domain (http://www.xensoft.com). First make sure you're loading the mod_rewrite module in your httpd.conf or