帝国CMS7.0伪静态Apache的Rewrite设置方法
帝国CMS7.0提供了伪静态的设置,本文就帝国7.0下伪静态Apache的Rewrite设置方法简述:
?
代码:# 将 RewriteEngine 模式打开RewriteEngine On
#信息内容页:showinfo-[!--classid--]-[!--id--]-[!--page--]
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^showinfo-(.+?)-(.+?)-(.+?)$ /e/action/ShowInfo.php?classid=$1&id=$2&page=$3</p> <p>#信息列表:listinfo-[!--classid--]-[!--page--]
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^listinfo-(.+?)-(.+?)$ /e/action/ListInfo/index.php?classid=$1&page=$2</p> <p>#标题分类列表页:infotype-[!--ttid--]-[!--page--]
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^infotype-(.+?)-(.+?)$ /e/action/InfoType/index.php?ttid=$1&page=$2</p> <p>#TAGS信息列表页:tags-[!--tagname--]-[!--page--]
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^tags-(.+?)-(.+?)$ /e/tags/index.php?tagname=$1&page=$2
?
以上就是默认的Rewrite规则设置方法。
猜您喜欢的源码帝国CMS模板博客文章资讯自适应手机HTML5网站SEO优化版帝国CMS7.5内核简洁文章资讯自适应手机HTML5综合类模板源码【内页 文章页、列表标题,描述,严格的SEO标题规范,利于SEO】