帝国CMS教程:伪静态Apache的Rewrite规则设置

# 将 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规则设置,
返回顶部
跳到底部

Copyright 2011-2024 南京追名网络科技有限公司 苏ICP备2023031119号-6 乌徒帮 All Rights Reserved Powered by Z-BlogPHP Theme By open开发

请先 登录 再评论,若不是会员请先 注册