]> git.mxchange.org Git - friendica.git/blob - .htaccess-dist
Fixes:
[friendica.git] / .htaccess-dist
1 Options -Indexes
2 AddType application/x-java-archive .jar
3 AddType audio/ogg .oga
4 #AddHandler php53-cgi .php
5
6 <FilesMatch "\.(out|log)$">
7   <IfModule authz_host_module>
8     #Apache 2.4
9     Require all denied
10   </IfModule>
11   <IfModule !authz_host_module>
12     #Apache 2.2
13     Deny from all
14   </IfModule>
15 </FilesMatch>
16
17 <IfModule mod_rewrite.c>
18   RewriteEngine on
19   # Protect repository directory from browsing
20   RewriteRule "(^|/)\.git" - [F]
21
22   # Rewrite current-style URLs of the form 'index.php?pagename=x'.
23   # Also place auth information into REMOTE_USER for sites running
24   # in CGI mode.
25
26   # If you have troubles or use VirtualDocumentRoot
27   # uncomment this and set it to the path where your friendica installation is
28   # i.e.:
29   # Friendica url: http://some.example.com
30   # RewriteBase /
31   # Friendica url: http://some.example.com/friendica
32   # RewriteBase /friendica/
33   #
34   #RewriteBase /
35
36   RewriteCond %{REQUEST_FILENAME} !-f
37   RewriteCond %{REQUEST_FILENAME} !-d
38   RewriteRule ^(.*)$ index.php?pagename=$1 [E=REMOTE_USER:%{HTTP:Authorization},L,QSA]
39
40 </IfModule>