example.htaccess 517 B

123456789101112131415161718192021
  1. # Turn on URL rewriting
  2. RewriteEngine On
  3. # Installation directory
  4. RewriteBase /
  5. # Protect hidden files from being viewed
  6. <Files .*>
  7. Order Deny,Allow
  8. Deny From All
  9. </Files>
  10. # Protect application and system files from being viewed
  11. RewriteRule ^(?:application|modules|system)\b.* index.php/$0 [L]
  12. # Allow any files or directories that exist to be displayed directly
  13. RewriteCond %{REQUEST_FILENAME} !-f
  14. RewriteCond %{REQUEST_FILENAME} !-d
  15. # Rewrite all other URLs to index.php/URL
  16. RewriteRule .* index.php/$0 [PT]