Friendica Communications Platform (please note that this is a clone of the repository at github, issues are handled there)
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.

.htaccess-dist 1.0KB

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