.htaccess 1011 B

123456789101112131415161718192021222324252627282930313233
  1. <IfModule mod_rewrite.c>
  2. #RewriteEngine On
  3. #RewriteRule ^(.*)$ public/$1 [L]
  4. <IfModule mod_negotiation.c>
  5. # Options -MultiViews
  6. </IfModule>
  7. RewriteEngine On
  8. RewriteBase /
  9. # Redirect Trailing Slashes If Not A Folder...
  10. RewriteCond %{REQUEST_FILENAME} !-d
  11. RewriteRule ^(.*)/$ /$1 [L,R=301]
  12. RewriteEngine On
  13. RewriteCond %{REQUEST_METHOD} OPTIONS
  14. RewriteRule ^(.*)$ $1 [R=200,L]
  15. # Handle Front Controller...
  16. RewriteCond %{REQUEST_FILENAME} !-d
  17. RewriteCond %{REQUEST_FILENAME} !-f
  18. RewriteRule ^ index.php [L]
  19. # Handle Authorization Header
  20. RewriteCond %{HTTP:Authorization} .
  21. RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
  22. </IfModule>
  23. # php -- BEGIN cPanel-generated handler, do not edit
  24. # Set the “ea-php80” package as the default “PHP” programming language.
  25. <IfModule mime_module>
  26. AddHandler application/x-httpd-ea-php80 .php .php8 .phtml
  27. </IfModule>
  28. # php -- END cPanel-generated handler, do not edit