Created
February 4, 2013 17:55
-
-
Save kaning/4708318 to your computer and use it in GitHub Desktop.
.htaccess file to route request to another folder from the root directory already configured in vhosts
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
RewriteEngine On | |
RewriteRule ^\.htaccess$ - [F] | |
RewriteCond %{REQUEST_URI} ="" | |
RewriteRule ^.*$ /public/index.php [NC,L] | |
RewriteCond %{REQUEST_URI} !^/public/.*$ | |
RewriteRule ^(.*)$ /public/$1 | |
RewriteCond %{REQUEST_FILENAME} -f | |
RewriteRule ^.*$ - [NC,L] | |
RewriteRule ^public/.*$ /public/index.php [NC,L] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment