首页 > 问答 > phpcms怎么做伪静态啊?

phpcms怎么做伪静态啊?

[导读]:弄了一下午点开栏目页就是404页面  是按网上的教程做的 这类的教程可真少啊 有没有大神做过 指点一二啊.. PHPCMS v9 伪静态规则 win 下 IIS 新建一个记事本文件,将文件名改为...

弄了一下午点开栏目页就是404页面  是按网上的教程做的 这类的教程可真少啊 有没有大神做过 指点一二啊..

PHPCMS v9 伪静态规则 win 下 IIS

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

  1. [ISAPI_Rewrite]
  2.  
  3. # 3600 = 1 hour
  4.  
  5. CacheClockRate 3600
  6.  
  7. RepeatLimit 32
  8.  
  9. RewriteEngine on
  10.  
  11. RewriteRule ^(.*)content-([0-9]+)-([0-9]+)-([0-9]+).html$ $1/$2&id=$3&page=$4
  12.  
  13. RewriteRule ^(.*)show-([0-9]+)-([0-9]+)-([0-9]+).html$ $1/$2&id=$3&page=$4
  14.  
  15. RewriteRule ^(.*)list-([0-9]+)-([0-9]+).html$ $1/$2&page=$3

apache 配置

#phpcms V9 伪静态规则:

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

感觉ASP 已经凉了

###

看你是什么服务器,不同的服务器配置规则也不一样。

本文来自投稿,不代表微盟圈立场,如若转载,请注明出处:https://www.vm7.com/a/ask/62457.html