Enforcing subdomains

May 6th, 2006

RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} =varwig.org        [NC,OR]
RewriteCond %{HTTP_HOST} =www.varwig.org    [NC]
RewriteRule /?(.*) http://jan.varwig.org/$1 [R,L]

Leave a comment