.htaccess 584 B

123456789101112131415161718192021
  1. <IfModule mod_rewrite.c>
  2. <IfModule mod_negotiation.c>
  3. Options -MultiViews
  4. </IfModule>
  5. RewriteEngine On
  6. # Redirect Trailing Slashes If Not A Folder...
  7. RewriteCond %{REQUEST_FILENAME} !-d
  8. RewriteCond %{REQUEST_URI} (.+)/$
  9. RewriteRule ^ %1 [L,R=301]
  10. # Handle Front Controller...
  11. RewriteCond %{REQUEST_FILENAME} !-d
  12. RewriteCond %{REQUEST_FILENAME} !-f
  13. RewriteRule ^ index.php [L]
  14. # Handle Authorization Header
  15. RewriteCond %{HTTP:Authorization} .
  16. RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
  17. </IfModule>