]> git.mxchange.org Git - friendica.git/blob - .htaccess
Merge branch 'master', remote-tracking branch 'remotes/upstream/master'
[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   # Protect repository directory from browsing
12   RewriteRule "(^|/)\.git" - [F]
13
14   # Rewrite current-style URLs of the form 'index.php?q=x'.
15   # Also place auth information into REMOTE_USER for sites running
16   # in CGI mode.
17
18   RewriteCond %{REQUEST_FILENAME} !-f
19   RewriteCond %{REQUEST_FILENAME} !-d
20   RewriteRule ^(.*)$ index.php?q=$1 [E=REMOTE_USER:%{HTTP:Authorization},L,QSA]
21
22 </IfModule>
23