英皇CMS去除index.php路由伪静态规则
- 时间:2024-04-21
- 阅读:0
- 来源:网友投稿
英皇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; }
分类推荐
发表评论