Apache Domain Redirection

Redirecting sub domain using Apache re-write engine

1) Add a new file to the root HTML files folders for the sub domain.

.htaccess

 

2) Edit the file and insert the following.  Modifying as needed.

RewriteEngine on
RewriteCond %{HTTP_HOST} ^x10host.com [NC,OR]
RewriteCond %{HTTP_HOST} ^stonywall.x10host.com [NC]
RewriteRule ^(.*)$ http://stonywall.com/$1 [L,R=301,NC]