Skip to content

Instantly share code, notes, and snippets.

@gaker
Created December 7, 2012 19:23
Show Gist options
  • Save gaker/4235758 to your computer and use it in GitHub Desktop.
Save gaker/4235758 to your computer and use it in GitHub Desktop.
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^subdomain1.yoursite.com [NC]
RewriteCond %{REQUEST_FILENAME} !foldername1/
RewriteRule ^(.*)$ foldername1/$1 [L]
RewriteCond %{HTTP_HOST} ^subdomain2.yoursite.com [NC]
RewriteCond %{REQUEST_FILENAME} !foldername2/
RewriteRule ^(.*)$ foldername2/$1 [L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment