Skip to content

Instantly share code, notes, and snippets.

@GustavoJobstraibizer
Created February 23, 2018 16:47
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 GustavoJobstraibizer/c67ea778132c5c1f440b7b51dfe1a41d to your computer and use it in GitHub Desktop.
Save GustavoJobstraibizer/c67ea778132c5c1f440b7b51dfe1a41d to your computer and use it in GitHub Desktop.
htaccess
<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