Created
April 18, 2017 18:43
-
-
Save palmiak/708008021d81b99237ee1ba3b35662fb to your computer and use it in GitHub Desktop.
Bedrock .htaccess for shared hosting
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} ^(www.)?example.com$ | |
RewriteCond %{REQUEST_URI} !^/web/ | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule ^(.*)$ /web/$1 | |
RewriteCond %{HTTP_HOST} ^(www.)?example.com$ | |
RewriteRule ^(/)?$ index.php [L] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment