帝国cms伪静态Apache的Rewrite设置方法

2023-12-01 0 670

这篇文章主要为大家介绍了帝国7.0伪静态Apache的Rewrite设置方法,需要的朋友可以参考下

代码如下:

# 将 RewriteEngine 模式打开

RewriteEngine On

#信息内容页:showinfo-14-186-[!–page–].html

RewriteCond %{QUERY_STRING} ^(.*)$

RewriteRule ^showinfo-(.+?)-(.+?)-(.+?).html$ /e/action/ShowInfo.php?classid=$1&id=$2&page=$3</p> <p>#信息列表:listinfo-14-[!–page–].html

RewriteCond %{QUERY_STRING} ^(.*)$

RewriteRule ^listinfo-(.+?)-(.+?).html$ /e/action/ListInfo/index.php?classid=$1&page=$2</p> <p>#标题分类列表页:infotype-0-[!–page–].html

RewriteCond %{QUERY_STRING} ^(.*)$

RewriteRule ^infotype-(.+?)-(.+?).html$ /e/action/InfoType/index.php?ttid=$1&page=$2</p> <p>#TAGS信息列表页:tags-[!–tagname–]-[!–page–].html

RewriteCond %{QUERY_STRING} ^(.*)$

RewriteRule ^tags-(.+?)-(.+?).html$ /e/tags/index.php?tagname=$1&page=$2

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

收藏 (0) 打赏

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

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

悠久资源 帝国CMS教程 帝国cms伪静态Apache的Rewrite设置方法 https://www.u-9.cn/jiaocheng/empirecms/14649.html

常见问题

相关文章

发表评论
暂无评论
官方客服团队

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