12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- <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>
- ###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
|