帝国伪动态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</p> <p>#信息列表:listinfo-[!--classid--]-[!--page--].html RewriteCond %{QUERY_STRING} ^(.*)$ RewriteRule ^listinfo-(.+?)-(.+?).html$ /e/action/ListInfo/index.php?classid=$1&page=$2</p> <p>#题目分类列表页:infotype-[!--ttid--]-[!--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规定设置办法。
以上就是帝国伪动态Apache的Rewrite若何设置的具体内容,更多请存眷资源魔其它相干文章!
标签: 帝国cms教程 帝国cms自学 帝国cms技术 帝国
版权声明:除非特别标注,否则均为本站原创文章,转载时请以链接形式注明文章出处。