title
菜鸟吧 首页 站长学堂 帝国教程 查看内容

帝国7.5Apache的伪静态设置教程

2019-10-17 13:38| 发布者: admin| 查看: 2| 评论: 0|原作者: 菜鸟哥

摘要: 这篇文章主要为大家介绍了帝国7.5伪静态Apache的Rewrite设置方法,需要的朋友可以参考下帝国CMS7.5提供了伪静态的设置,本文就帝国7.0下伪静态Apache的Rewrite设置方法简述如…… ...

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

帝国CMS7.5提供了伪静态的设置,本文就帝国7.0下伪静态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</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规则设置方法。


路过

雷人

握手

鲜花

鸡蛋

最新评论

Archiver 手机版 小黑屋 网站地图

Copyright © 2015-2026 菜鸟吧论坛 |找资源研究学习当然上菜鸟吧论坛

警告:本站所有资源收集世界互联网,请下载后24小时之内删除,否則後果自負!
WARNING: ‌All resources from the web. Delete within 24 hours or consequences at your own risk!
郑重声明:站内所有资源均来自互联网或会员投稿发布, 如果侵犯了权益请联系删除,E-mail:cainiaovip8@qq.com 商用请购买正版。

返回顶部