dir/.htaccess

24 lines
578 B
ApacheConf
Raw Normal View History

2012-05-16 07:31:36 +02:00
Options -Indexes
AddType application/x-java-archive .jar
2012-05-18 03:52:46 +02:00
AddType audio/ogg .oga
<FilesMatch "\.(out|log)$">
Deny from all
</FilesMatch>
2012-05-16 07:31:36 +02:00
<IfModule mod_rewrite.c>
RewriteEngine on
2012-05-18 03:52:46 +02:00
# Protect repository directory from browsing
RewriteRule "(^|/)\.git" - [F]
2012-05-16 07:31:36 +02:00
# Rewrite current-style URLs of the form 'index.php?q=x'.
2012-05-18 03:52:46 +02:00
# Also place auth information into REMOTE_USER for sites running
# in CGI mode.
2012-05-16 07:31:36 +02:00
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
2012-05-18 03:52:46 +02:00
RewriteRule ^(.*)$ index.php?q=$1 [E=REMOTE_USER:%{HTTP:Authorization},L,QSA]
2012-05-16 07:31:36 +02:00
</IfModule>