Created
February 23, 2018 16:47
-
-
Save GustavoJobstraibizer/c67ea778132c5c1f440b7b51dfe1a41d to your computer and use it in GitHub Desktop.
htaccess
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
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase / | |
RewriteRule ^index\.php$ - [L] | |
RewriteRule ^$ - [L] | |
RewriteRule ^/$ - [L] | |
RewriteCond %{REQUEST_FILENAME} -f | |
RewriteCond %{REQUEST_FILENAME} !\.(css|js|xml|json|png|jpg|ico|ttf|woff|woff2)$ | |
RewriteRule ".*" "/401" [END,R] | |
RewriteCond %{REQUEST_FILENAME} -d | |
RewriteRule ".*" "/401" [END,R] | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteCond %{REQUEST_FILENAME} !\.(css|js|xml|json)$ | |
RewriteRule .*\?? /?uri=%{REQUEST_URI} [QSA] | |
</IfModule> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment