网站地图    收藏   

主页 > 后端 > phpcmsv9 >

phpcms2008 企业黄页模块伪静态设置规则分享_phpc

来源:自学PHP网    时间:2014-11-21 10:16 作者: 阅读:

[导读] 官方给出的伪静态规则 试了一遍不行,下面我给出解决方案,希望能帮助到你们...

官方给出的伪静态规则 试了一遍不行,下面我给出解决方案,希望能帮助到你们
httpd.ini

复制代码
代码如下:

[ISAPI_Rewrite]
# 3600 = 1 hour
CacheClockRate 3600
RepeatLimit 32
# Protect httpd.ini and httpd.parse.errors files
# from accessing through HTTP
RewriteRule ^(.*)/yp/([a-z]+)-([0-9]+)\.html$ $1/yp/$2.php\?action=show&id=$3
RewriteRule ^(.*)/job-list-([0-9]+)-([0-9]+)-(.+)\.html$ $1/job.php\?action=list&inputtime=$2&station=$3&genre=$4
RewriteRule ^(.*)/product-list-([0-9]+)-([0-9]+)-([0-9]+)--(.+)--([0-1]).html$ $1/product.php\?
view_type=$2&catid=$3&pagesize=$4&areaname=$5&order=$6
RewriteRule ^(.*)/product-list-([0-9]+)-([0-9]+)-([0-9]+)--(.+)--([0-1])-([0-9]+).html$ $1/product.php\?
view_type=$2&catid=$3&pagesize=$4&areaname=$5&order=$6&page=$7
RewriteRule ^(.*)/([a-z]+)-list-([0-9]+)\.html$ $1/$2.php\?action=list&catid=$3
RewriteRule ^(.*)/show-([0-9]+)-([a-z]+)-([0-9]+)\.html$ $1/web/show.php\?userid-$2/category-$3/id-$4.html
RewriteRule ^(.*)/job-list-([0-9]+)-([0-9]+)-(.+)\.html$ $1/job.php\?action=list&inputtime=$2&station=$3&genre=$4
RewriteRule ^(.*)/([a-z]+^[id])-([0-9]+)\.html$ $1/$2.php\?action=show&id=$3
RewriteRule ^(.*)/company-list-([0-9]+)-([a-z]+)--(.+)--([0-9]+).html$ $1/company.php\?pagesize=$2&listtype=$3&areaname=$4&catid=$5
RewriteRule ^(.*)/company-list-([0-9]+)-([a-z]+)--(.+)--([0-9]+)-([0-9]+).html$ $1/company.php\?pagesize=$2&listtype=$3&areaname=$4&catid=$5&page=$6
RewriteRule ^(.*)/show-([0-9]+)-([a-z]+)-([0-9]+)\.html$ $1/web/show\.php\?userid-$2\/category-$3\/id-$4\.html
#Tag
RewriteRule ^(.*)/tag/(.+)/\?*(.*)$ $1/tag\.php\?tag=$2

自学PHP网专注网站建设学习,PHP程序学习,平面设计学习,以及操作系统学习

京ICP备14009008号-1@版权所有www.zixuephp.com

网站声明:本站所有视频,教程都由网友上传,站长收集和分享给大家学习使用,如由牵扯版权问题请联系站长邮箱904561283@qq.com

添加评论