微擎设置伪静态规则(IIS ,Nginx,Apache)

发布时间:2026-02-04 14:25:55 浏览次数:0

微擎的伪静态规则

apache规则
RewriteEngineOnRewriteBase/RewriteRule^([0-9]+)-([0-9]+).html$/app/index.php?i=$1&a=webapp&c=entry&eid=$2%1[L,QSA]RewriteRule^([0-9]+)/$/app/index.php?i=$1&a=webapp&c=entry&do=index&m=fy_lessonv2[L,QSA]RewriteRule^([0-9]+)/([0-9a-zA-Z]+).html$/app/index.php?i=$1&a=webapp&c=entry&do=$2&m=fy_lessonv2[L,QSA]
IIS如果安装了url重写模块,可以通过重写模块导入上面的规则,
IIS如果安装了isapi-rewirte软件,找到软件路径,修改httpd.conf ,添加上面的即可
Nginx,比较简单,如果安装了宝塔,通过站点的伪静态规则添加即可
rewrite^/([0-9]+)-([0-9]+).html$/app/index.php?i=$1&a=webapp&c=entry&eid=$2;rewrite^/([0-9]+)/$/app/index.php?i=$1&a=webapp&c=entry&do=index&m=fy_lessonv2;rewrite^/([0-9]+)/([a-zA-Z]+).html$/app/index.php?i=$1&a=webapp&c=entry&do=$2&m=fy_lessonv2;

微擎
需要做网站?需要网络推广?欢迎咨询客户经理 13272073477