]> 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 <Files "(include|library)">
9 Deny from all
10 </Files>
11
12 <IfModule mod_rewrite.c>
13   RewriteEngine on
14   # Protect repository directory from browsing
15   RewriteRule "(^|/)\.git" - [F]
16
17   # Rewrite current-style URLs of the form 'index.php?q=x'.
18   # Also place auth information into REMOTE_USER for sites running
19   # in CGI mode.
20
21   RewriteCond %{REQUEST_FILENAME} !-f
22   RewriteCond %{REQUEST_FILENAME} !-d
23   RewriteRule ^(.*)$ index.php?q=$1 [E=REMOTE_USER:%{HTTP:Authorization},L,QSA]
24
25 </IfModule>
26