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