.htaccess 678 B

12345678910111213141516171819202122
  1. <IfModule mod_rewrite.c>
  2. RewriteEngine On
  3. # May be required to access sub directories
  4. #RewriteBase /
  5. # Deny access to internal dirs and files by passing the URL to Pico
  6. RewriteRule ^(\.git|config|content|content-sample|lib|vendor)(/|$) index.php [L]
  7. RewriteRule ^(CHANGELOG\.md|composer\.(json|lock)) index.php [L]
  8. # Enable URL rewriting
  9. RewriteCond %{REQUEST_FILENAME} !-f
  10. RewriteCond %{REQUEST_FILENAME} !-d
  11. RewriteRule ^ index.php [L]
  12. <IfModule mod_env.c>
  13. # Let Pico know about available URL rewriting
  14. SetEnv PICO_URL_REWRITING 1
  15. </IfModule>
  16. </IfModule>
  17. # Prevent file browsing
  18. Options -Indexes -MultiViews