htaccess.sample 890 B

12345678910111213141516171819202122232425262728293031323334
  1. <IfModule mod_rewrite.c>
  2. RewriteEngine On
  3. # NOTE: change this to your actual StatusNet base URL path,
  4. # minus the domain part:
  5. #
  6. # http://example.com/ => /
  7. # http://example.com/mublog/ => /mublog/
  8. #
  9. RewriteBase /
  10. #RewriteBase /mublog/
  11. ## Uncomment these if having trouble with API authentication
  12. ## when PHP is running in CGI or FastCGI mode.
  13. #
  14. #RewriteCond %{HTTP:Authorization} ^(.*)
  15. #RewriteRule ^(.*) - [E=HTTP_AUTHORIZATION:%1]
  16. RewriteCond %{REQUEST_FILENAME} !-f
  17. RewriteCond %{REQUEST_FILENAME} !-d
  18. RewriteRule (.*) index.php?p=$1 [L,QSA]
  19. ## You can also use PATHINFO by using this RewriteRule instead:
  20. # RewriteRule (.*) index.php/$1 [L,QSA]
  21. </IfModule>
  22. <FilesMatch "\.(ini)">
  23. # For mod_access_compat in Apache <2.4
  24. Order allow,deny
  25. # Use this instead for Apache >2.4 (mod_authz_host)
  26. # Require all denied
  27. </FilesMatch>