1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- <IfModule mod_rewrite.c>
- <IfModule mod_negotiation.c>
- Options -MultiViews -Indexes
- </IfModule>
- RewriteEngine On
- RewriteRule ^(.*)$ public/$1 [L]
- # Handle Authorization Header
- RewriteCond %{HTTP:Authorization} .
- RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
- # Redirect Trailing Slashes If Not A Folder...
- RewriteCond %{REQUEST_FILENAME} !-d
- RewriteCond %{REQUEST_URI} (.+)/$
- RewriteRule ^ %1 [L,R=301]
- # Send Requests To front Controller...
- RewriteCond %{REQUEST_FILENAME} !-d
- RewriteCond %{REQUEST_FILENAME} !-f
- RewriteRule ^ index.php [L]
- </IfModule>
- <IfModule mod_headers.c>
- Header always unset X-Frame-Options
- </IfModule>
- ###Start Kloxo PHP config Area
- ### begin content - please not remove this line
- #<IfModule mod_rewrite.c>
- # ## MR -- authentically for letsencrypt for webroot-based
- # RewriteRule /\.|^\.(?!well-known/) - [F]
- #</FilesMatch>
- ### MR -- using php version different with default php
- ### 1. Using suphp
- ### - Copy between '#<FilesMatch \.php$>' to '#</FilesMatch>' and
- ### then remove '#' from '#<FilesMatch', '#</FilesMatch>' and one of '#SetHandler'
- #<FilesMatch \.php$>
- #SetHandler x-httpd-php
- #SetHandler x-httpd-php56
- #SetHandler x-httpd-php73
- #</FilesMatch>
- ### OR
- ### 2. Using fcgid
- ### - Copy from '#Options' to '#FCGIWrapper' and
- ### then remove '#' for one of '#FCGIWrapper'
- #Options +ExecCGI
- #<FilesMatch \.php$>
- # SetHandler fcgid-script
- #</FilesMatch>
- #FCGIWrapper /usr/bin/php-cgi .php
- #FCGIWrapper /usr/bin/php56m-cgi .php
- #FCGIWrapper /usr/bin/php73m-cgi .php
- ### end content - please not remove this line
- ###End Kloxo PHP config Area
|