Skip to content

Instantly share code, notes, and snippets.

@Eflyax
Created January 8, 2019 11:14
Show Gist options
  • Save Eflyax/566586d27e42b64946a248a06615fd6b to your computer and use it in GitHub Desktop.
Save Eflyax/566586d27e42b64946a248a06615fd6b to your computer and use it in GitHub Desktop.
Ebola - htaccess [www]
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule /\.|^\. - [F]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule !\.(pdf|js|ico|gif|jpg|png|css|rar|zip|tar\.gz|map)$ index.php [L]
</IfModule>
<IfModule mod_deflate.c>
<IfModule mod_filter.c>
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css application/x-javascript text/javascript application/javascript application/json
</IfModule>
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment