英皇CMS去除index.php路由伪静态规则
Apache主机规则
RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?/$1 [QSA,PT,L]
Nginx主机规则
if (!-f $request_filename){ set $rule_0 1$rule_0; } if (!-d $request_filename){ set $rule_0 2$rule_0; } if ($rule_0 = "21"){ rewrite ^/admin.php(.*)$ /admin.php$1 last; rewrite ^/(.*)$ /index.php?/$1 last; }