### [帝国伪静态Apache的Rewrite如何设置](https://www.prosaas.cn/article/1562) **Published:** 2019-12-07T01:08:16 **Author:** 5201314 **Excerpt:** 帝国伪静态Apache的Rewrite如何设置?帝国伪静态Apache的Rewrite如何设置帝国CMS7.0… **![](//zhiqipro.oss-cn-beijing.aliyuncs.com/2023/12/20231212120000577.jpg)** **帝国伪静态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=$1&id=$2&page=$3

#信息列表:listinfo-\[!--classid--\]-\[!--page--\].html RewriteCond %{QUERY\_STRING} ^(.\*)$ RewriteRule ^listinfo-(.+?)-(.+?).html$ /e/action/ListInfo/index.php?classid=$1&page=$2

#标题分类列表页:infotype-\[!--ttid--\]-\[!--page--\].html RewriteCond %{QUERY\_STRING} ^(.\*)$ RewriteRule ^infotype-(.+?)-(.+?).html$ /e/action/InfoType/index.php?ttid=$1&page=$2

#TAGS信息列表页:tags-\[!--tagname--\]-\[!--page--\].html RewriteCond %{QUERY\_STRING} ^(.\*)$ RewriteRule ^tags-(.+?)-(.+?).html$ /e/tags/index.php?tagname=$1&page=$2 以上就是默认的Rewrite规则设置方法。 以上就是帝国伪静态Apache的Rewrite如何设置的详细内容,更多请关注知企PROSAAS其它相关文章! **Tags:** apache, cms, 帝国CMS **Categories:** 帝国CMS ---