.htaccess 644 B

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