Skip to content

Instantly share code, notes, and snippets.

@mi-ca
Created November 13, 2020 14:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mi-ca/edcfe862a3e6157189728f7b4f6ca7a5 to your computer and use it in GitHub Desktop.
Save mi-ca/edcfe862a3e6157189728f7b4f6ca7a5 to your computer and use it in GitHub Desktop.
htaccess subfolder forced to root
#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