phpcms v9伪静态规则iis/apache配置方法

[v_tips]本文讲的是phpcms v9伪静态规则iis/apache配置方法, phpcms v9伪静态规则 win下IIS 新建一个记事本文件,将文件名改为:httpd.ini。再将以下代码粘贴进去。 代码如下 复制代码 [ISAPI_Rewrite] # 3600 = 1 hour[/v_tips]
phpcms v9伪静态规则 win下IIS

新建一个记事本文件,将文件名改为:httpd.ini。再将以下代码粘贴进去。

[ISAPI_Rewrite]

# 3600 = 1 hour

CacheClockRate 3600

RepeatLimit 32

RewriteEngine on

RewriteRule ^(.*)content-([0-9]+)-([0-9]+)-([0-9]+).html$ $1/index.php?m=content&c=index&a=show&catid=$2&id=$3&page=$4

RewriteRule ^(.*)show-([0-9]+)-([0-9]+)-([0-9]+).html$ $1/index.php?m=content&c=index&a=show&catid=$2&id=$3&page=$4

RewriteRule ^(.*)list-([0-9]+)-([0-9]+).html$ $1/index.php?m=content&c=index&a=lists&catid=$2&page=$3

apache配置

#PHPCMS V9伪静态规则:

RewriteEngine on
RewriteRule ^content-([0-9]+)-([0-9]+)-([0-9]+).html index.php?m=content&c=index&a=show&catid=$1&id=$2&page=$3
RewriteRule ^show-([0-9]+)-([0-9]+)-([0-9]+).html index.php?m=content&c=index&a=show&catid=$1&id=$2&page=$3
RewriteRule ^list-([0-9]+)-([0-9]+).html index.php?m=content&c=index&a=lists&catid=$1&page=$2

主题测试文章,只做测试使用。发布者:云大使,转转请注明出处:https://www.xp8.net/web/211.html

(0)
打赏 微信扫一扫 微信扫一扫
云大使的头像云大使
上一篇 2018年7月17日 下午4:23
下一篇 2018年7月18日 下午12:46

相关推荐

发表回复

登录后才能评论
联系我们

联系我们

18838889666

在线咨询: QQ交谈

邮件:xinyun@88.com

工作时间:周一至周五,9:30-18:30,节假日休息

添加微信
添加微信
分享本页
返回顶部
---------官方优惠叠加渠道折扣:通过我们购买腾讯云/阿里云,价格更低,服务更优。更有专业配置指导与服务。微信同步:18838889666----