[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