程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
 程式師世界 >> 編程語言 >> 網頁編程 >> PHP編程 >> 關於PHP編程 >> phpcms2008企業黃頁模塊偽靜態設置

phpcms2008企業黃頁模塊偽靜態設置

編輯:關於PHP編程

 

官方給出的偽靜態規則  試了一遍不行,下面我給出解決方案,希望能幫助到你們:

 

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

  1. 上一頁:
  2. 下一頁:
Copyright © 程式師世界 All Rights Reserved