.htaccess 577 B

12345678910111213141516171819
  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. RewriteCond %{REQUEST_URI} \.ini$
  9. RewriteRule \.ini$ - [R=404]
  10. RewriteCond %{REQUEST_URI} \.html?$
  11. RewriteRule \.html?$ - [R=404]
  12. RewriteCond %{REQUEST_FILENAME} !-l
  13. RewriteCond %{REQUEST_FILENAME} !-f
  14. RewriteCond %{REQUEST_FILENAME} !-d
  15. RewriteRule .* index.php [L,QSA,E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]