Last active
September 30, 2015 08:38
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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