.htaccess 575 B

123456789101112131415161718
  1. # Enable rewrite engine and route requests to framework
  2. RewriteEngine On
  3. # Some servers require you to specify the `RewriteBase` directive
  4. # In such cases, it should be the path (relative to the document root)
  5. # containing this .htaccess file
  6. #
  7. # RewriteBase /
  8. RewriteRule ^app\/(controller|dict|helper|model|view) - [R=404]
  9. RewriteRule ^(tmp|log)\/|\.ini$ - [R=404]
  10. RewriteCond %{REQUEST_FILENAME} !-l
  11. RewriteCond %{REQUEST_FILENAME} !-f
  12. RewriteCond %{REQUEST_FILENAME} !-d
  13. RewriteRule .* index.php [L,QSA]
  14. RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]