]> git.mxchange.org Git - friendica.git/blob - .htaccess
set user-agent
[friendica.git] / .htaccess
1 Options -Indexes
2 AddType application/x-java-archive .jar
3 AddType audio/ogg .oga
4
5 <FilesMatch "\.(out|log)$">
6 Deny from all
7 </FilesMatch>
8
9 <IfModule mod_rewrite.c>
10   RewriteEngine on
11
12   # Protect repository directory from browsing
13   RewriteRule "(^|/)\.git" - [F]
14
15   # Rewrite current-style URLs of the form 'index.php?q=x'.
16   # Also place auth information into REMOTE_USER for sites running
17   # in CGI mode.
18
19   RewriteCond %{REQUEST_FILENAME} !-f
20   RewriteCond %{REQUEST_FILENAME} !-d
21   RewriteRule ^(.*)$ index.php?q=$1 [E=REMOTE_USER:%{HTTP:Authorization},L,QSA]
22
23 </IfModule>
24