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.

27 lines
630B

  1. #Options -Indexes
  2. AddType application/x-java-archive .jar
  3. AddType audio/ogg .oga
  4. <FilesMatch "\.(out|log)$">
  5. Deny from all
  6. </FilesMatch>
  7. <Files "(include|library)">
  8. Deny from all
  9. </Files>
  10. <IfModule mod_rewrite.c>
  11. RewriteEngine on
  12. # Protect repository directory from browsing
  13. RewriteRule "(^|/)\.git" - [F]
  14. # Rewrite current-style URLs of the form 'index.php?q=x'.
  15. # Also place auth information into REMOTE_USER for sites running
  16. # in CGI mode.
  17. RewriteCond %{REQUEST_FILENAME} !-f
  18. RewriteCond %{REQUEST_FILENAME} !-d
  19. RewriteRule ^(.*)$ index.php?q=$1 [E=REMOTE_USER:%{HTTP:Authorization},L,QSA]
  20. </IfModule>