Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
14 lines (11 sloc) 447 Bytes
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^(.*/)?\.git/ - [F,L]
RewriteRule ^(.*/)?include/ - [F,L]
RewriteRule ^(.*/)?template/.+\.php$ - [F,L]
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
# Rewrite current-style URLs of the form 'index.php?q=x'.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
</IfModule>