📜  htaccess 所有请求都转到 index.php - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:51:12.741000             🧑  作者: Mango

代码示例1
# eg. on cpanel, set document root to Laravels 'public' folder
# put .htaccess to 'public_html' / root directory

RewriteEngine on
RewriteBase /frameworkRootFolder/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ /frameworkRootFolder/index.php [L,QSA]