Created
February 4, 2019 09:17
-
-
Save hermanomark/518337501364cec528309e8d360b03e5 to your computer and use it in GitHub Desktop.
How to change my document root folder using an .htaccess file?
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} ^taste.ph$ [NC,OR] | |
RewriteCond %{HTTP_HOST} ^www.taste.ph$ | |
RewriteCond %{REQUEST_URI} !taste/ | |
RewriteRule (.*) /taste/$1 [L] | |
credits to: https://www.siteground.com/kb/how_to_change_my_document_root_folder_using_an_htaccess_file/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment