.htaccess 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <IfModule mod_rewrite.c>
  2. <IfModule mod_negotiation.c>
  3. Options -MultiViews -Indexes
  4. </IfModule>
  5. RewriteEngine On
  6. RewriteRule ^(.*)$ public/$1 [L]
  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>
  19. <IfModule mod_headers.c>
  20. Header always unset X-Frame-Options
  21. </IfModule>
  22. ###Start Kloxo PHP config Area
  23. ### begin content - please not remove this line
  24. #<IfModule mod_rewrite.c>
  25. # ## MR -- authentically for letsencrypt for webroot-based
  26. # RewriteRule /\.|^\.(?!well-known/) - [F]
  27. #</FilesMatch>
  28. ### MR -- using php version different with default php
  29. ### 1. Using suphp
  30. ### - Copy between '#<FilesMatch \.php$>' to '#</FilesMatch>' and
  31. ### then remove '#' from '#<FilesMatch', '#</FilesMatch>' and one of '#SetHandler'
  32. #<FilesMatch \.php$>
  33. #SetHandler x-httpd-php
  34. #SetHandler x-httpd-php56
  35. #SetHandler x-httpd-php73
  36. #</FilesMatch>
  37. ### OR
  38. ### 2. Using fcgid
  39. ### - Copy from '#Options' to '#FCGIWrapper' and
  40. ### then remove '#' for one of '#FCGIWrapper'
  41. #Options +ExecCGI
  42. #<FilesMatch \.php$>
  43. # SetHandler fcgid-script
  44. #</FilesMatch>
  45. #FCGIWrapper /usr/bin/php-cgi .php
  46. #FCGIWrapper /usr/bin/php56m-cgi .php
  47. #FCGIWrapper /usr/bin/php73m-cgi .php
  48. ### end content - please not remove this line
  49. ###End Kloxo PHP config Area