1 # This file is meant to be copied to ".htaccess" on Apache-powered web servers.
2 # The created .htaccess file can be edited manually and will not be overwritten by Friendica updates.
5 AddType application/x-java-archive .jar
7 #AddHandler php53-cgi .php
9 <FilesMatch "\.(out|log)$">
10 <IfModule authz_host_module>
14 <IfModule !authz_host_module>
20 <IfModule mod_rewrite.c>
22 # Protect repository directory from browsing
23 RewriteRule "(^|/)\.git" - [F]
25 # Rewrite current-style URLs of the form 'index.php?pagename=x'.
26 # Also place auth information into REMOTE_USER for sites running
29 # If you have troubles or use VirtualDocumentRoot
30 # uncomment this and set it to the path where your friendica installation is
32 # Friendica url: http://some.example.com
34 # Friendica url: http://some.example.com/friendica
35 # RewriteBase /friendica/
39 RewriteCond %{REQUEST_FILENAME} !-f
40 RewriteCond %{REQUEST_FILENAME} !-d
41 RewriteRule ^(.*)$ index.php?pagename=$1 [E=REMOTE_USER:%{HTTP:Authorization},L,QSA]