Skip to content

Instantly share code, notes, and snippets.

@tghelere
Created February 14, 2018 16:05
Show Gist options
  • Save tghelere/92f80ee5ff98f3b12197111cbb0fad3c to your computer and use it in GitHub Desktop.
Save tghelere/92f80ee5ff98f3b12197111cbb0fad3c to your computer and use it in GitHub Desktop.
AddDefaultCharset UTF-8
Options -Indexes
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-l
RewriteCond %{REQUEST_URI} !^.*[^/]$
RewriteCond %{REQUEST_URI} !^.*//.*$
RewriteCond %{QUERY_STRING} !.*=.*
RewriteCond %{HTTP:Profile} !^[a-z0-9\"]+ [NC]
RewriteCond %{HTTP:Accept-Encoding} gzip
RewriteCond %{HTTPS} !on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment