Friendica Communications Platform (please note that this is a clone of the repository at github, issues are handled there) https://friendi.ca
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

44 lines
1.2 KiB

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