Created
November 25, 2017 02:09
-
-
Save natanfelles/9bdf6ad2ec797d066b338d315d101f42 to your computer and use it in GitHub Desktop.
Apache .htaccess - Use child folder as document root
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 | |
RewriteCond %{HTTP_HOST} ^domain.tld$ [NC,OR] | |
RewriteCond %{HTTP_HOST} ^www.domain.tld$ | |
RewriteCond %{REQUEST_URI} !public/ | |
RewriteRule (.*) /public/$1 [L] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment