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 # deny access to log files (friendica.log or php.out)
10 <FilesMatch "\.(out|log)$">
11 <IfModule authz_host_module>
15 <IfModule !authz_host_module>
21 # deny access to backup files
22 <FilesMatch "(\~|\.bak|\.swp)$">
23 <IfModule authz_host_module>
27 <IfModule !authz_host_module>
33 <IfModule mod_rewrite.c>
35 # Protect repository directory from browsing
36 RewriteRule "(^|/)\.git" - [F]
38 # Rewrite current-style URLs of the form 'index.php?pagename=x'.
39 # Also place auth information into REMOTE_USER for sites running
42 # If you have troubles or use VirtualDocumentRoot
43 # uncomment this and set it to the path where your friendica installation is
45 # Friendica url: http://some.example.com
47 # Friendica url: http://some.example.com/friendica
48 # RewriteBase /friendica/
52 RewriteCond %{REQUEST_FILENAME} !-f
53 RewriteCond %{REQUEST_FILENAME} !-d
54 RewriteRule ^(.*)$ index.php?pagename=$1 [E=REMOTE_USER:%{HTTP:Authorization},L,QSA]