Skip to content

Instantly share code, notes, and snippets.

@urielaero
Created February 28, 2018 17:46
Show Gist options
  • Select an option

  • Save urielaero/f0e0a7f29aaebc10c3dba7b9da1a75ec to your computer and use it in GitHub Desktop.

Select an option

Save urielaero/f0e0a7f29aaebc10c3dba7b9da1a75ec to your computer and use it in GitHub Desktop.
<files *.js.gz>
AddType "text/javascript" .gz
AddEncoding gzip .gz
</files>
<files *.css.gz>
AddType "text/css" .gz
AddEncoding gzip .gz
</files>
php_value magic_quotes_gpc Off
php_value max_execution_time 200
php_value max_input_time 200
RewriteEngine On
RewriteBase /
RewriteRule ^([-_\w]+)/?$ ?controler=$1 [QSA,L]
RewriteRule ^([-_\w]+)/([-_\w]+)/?$ ?controler=$1&action=$2 [QSA,L]
RewriteRule ^([-_\w]+)/([-_\w]+)/([-_\w]+)/?$ ?controler=$1&action=$2&id=$3 [L]
RewriteRule ^([-_\w]+)/([-_\w]+)/([-_\w]+)/e=(\w)+/?$ ?controler=$1&action=$2&id=$3&error=$4 [L]
Options -Indexes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment