Created
November 13, 2020 14:22
-
-
Save mi-ca/edcfe862a3e6157189728f7b4f6ca7a5 to your computer and use it in GitHub Desktop.
htaccess subfolder forced to 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
#place htaccess in subfolder | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
#redirect /folder to root | |
RewriteRule ^(.*)$ /$1 [R=301,L] | |
</IfModule> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment