英皇CMS去除index.php路由伪静态规则

2022-01-21 0 382

英皇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;
}
收藏 (0) 打赏

感谢您的支持,我会继续努力的!

打开微信/支付宝扫一扫,即可进行扫码打赏哦,分享从这里开始,精彩与您同在
点赞 (0)

mtheme模板 技术教程 英皇CMS去除index.php路由伪静态规则 https://www.mtheme.cc/232.html

常见问题

相关文章

官方客服团队

为您解决烦忧 - 24小时在线 专业服务