帝国伪静态Apache的Rewrite如何设置

帝国伪静态Apache的Rewrite如何设置,第1张

帝国伪静态Apache的Rewrite如何设置

帝国伪静态Apache的Rewrite如何设置?

帝国伪静态Apache的Rewrite如何设置帝国CMS7.0提供了伪静态的设置,本文就帝国7.0下伪静态Apache的Rewrite设置方法简述如下:

推荐学习《帝国cms教程》

代码如下:

# 将 RewriteEngine 模式打开
RewriteEngine On
#信息内容页:showinfo-[!--classid--]-[!--id--]-[!--page--].html
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^showinfo-(.+?)-(.+?)-(.+?).html$ /e/action/ShowInfo.php?classid=&id=&page=</p> <p>#信息列表:listinfo-[!--classid--]-[!--page--].html
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^listinfo-(.+?)-(.+?).html$ /e/action/ListInfo/index.php?classid=&page=</p> <p>#标题分类列表页:infotype-[!--ttid--]-[!--page--].html
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^infotype-(.+?)-(.+?).html$ /e/action/InfoType/index.php?ttid=&page=</p> <p>#TAGS信息列表页:tags-[!--tagname--]-[!--page--].html
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^tags-(.+?)-(.+?).html$ /e/tags/index.php?tagname=&page=

以上就是默认的Rewrite规则设置方法。

以上就是帝国伪静态Apache的Rewrite如何设置的详细内容,

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/zz/676951.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-04-19
下一篇 2022-04-19

发表评论

登录后才能评论

评论列表(0条)

保存