.htaccess 649 B

12345678910111213141516171819202122
  1. <IfModule mod_rewrite.c>
  2. Header set Access-Control-Allow-Origin: *
  3. <IfModule mod_negotiation.c>
  4. Options -MultiViews -Indexes
  5. </IfModule>
  6. RewriteEngine On
  7. # Handle Authorization Header
  8. RewriteCond %{HTTP:Authorization} .
  9. RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
  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>