Skip to content

Instantly share code, notes, and snippets.

@dmgallardo
Last active September 30, 2015 08:38
Show Gist options
  • Save dmgallardo/1753941 to your computer and use it in GitHub Desktop.
Save dmgallardo/1753941 to your computer and use it in GitHub Desktop.
HTACCESS: Rewrite rule for shared sites under the same server, add a 2nd site under a subfolder
#Create a folder subdomain, and make it work like a domain.
RewriteCond %{HTTP_HOST} mysite.com.ar
RewriteCond %{REQUEST_URI} !^/mysite #mysite_folder
RewriteRule ^(.*)$ mysite/$1 [L] #mysite_folder
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment