Created
December 30, 2023 11:46
-
-
Save tranchausky/cd48a3aee40c37ed903e5c9ff1ab42b6 to your computer and use it in GitHub Desktop.
Use a subdirectory as root with htaccess
This file contains hidden or 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-name.com$ [NC,OR] | |
| RewriteCond %{HTTP_HOST} ^www.domain-name.com$ | |
| RewriteCond %{REQUEST_URI} !folder/ | |
| RewriteRule (.*) /folder/$1 [L] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment