]> git.mxchange.org Git - friendica.git/blob - .htaccess
Merge pull request #481 from pixelroot/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   # If you have troubles or use VirtualDocumentRoot
19   # uncomment this and set it to the path where your friendica installation is
20   # i.e.:
21   # Friendica url: http://some.example.com
22   # RewriteBase /
23   # Friendica url: http://some.example.com/friendica
24   # RewriteBase /friendica/
25   #
26   #RewriteBase /
27
28   RewriteCond %{REQUEST_FILENAME} !-f
29   RewriteCond %{REQUEST_FILENAME} !-d
30   RewriteRule ^(.*)$ index.php?q=$1 [E=REMOTE_USER:%{HTTP:Authorization},L,QSA]
31
32 </IfModule>
33