- 积分
- 2
- 威望
-
- 金钱
-
- 注册时间
- 2012-5-4
- 在线时间
- 小时
- 最后登录
- 1970-1-1
|
求高手帮忙把 httpd.ini 改成 nginx 的.conf规则格式,因为在下实在不懂这种转换。。。
httpd.ini 文件内容如下:
[ISAPI_Rewrite]
# 3600 = 1 hour
CacheClockRate 3600
RepeatLimit 32
# Block external access to the httpd.ini and httpd.parse.errors files
RewriteRule /httpd(?:\.ini|\.parse\.errors).* / [F,I,O]
# Block external access to the Helper ISAPI Extension
RewriteRule .*\.isrwhlp / [F,I,O]
RewriteRule /index\.html /index\.php
RewriteRule /sitemap.htm /sitemap.php
RewriteRule /([a-zA-Z0-9]*)/([a-zA-Z0-9]*)\.html /$1/$2\.php
RewriteRule /([a-zA-Z0-9]*)/(.*)detail_([0-9]+)\.html /$1/$2detail\.php\?$2id=$3
RewriteRule /([a-zA-Z0-9]*)/index_([0-9]+)\.html /$1/index\.php\?PageNo=$2
RewriteRule /news/news_([0-9]+)\.html /news/news\.php\?newsclassid=$1
RewriteRule /news/news_([0-9]+)_([0-9]+)\.html /news/news\.php\?newsclassid=$1&PageNo=$2
RewriteRule /cz/chuzu_([0-9]+)\.html /cz/czdetail\.php\?czid=$1
RewriteRule /cs/chushou_([0-9]+)\.html /cs/csdetail\.php\?csid=$1
RewriteRule /qz/qiuzu_([0-9]+)\.html /qz/qzdetail\.php\?qzid=$1
RewriteRule /qg/qiugou_([0-9]+)\.html /qg/qgdetail\.php\?qgid=$1
RewriteRule /zhidao/question_([0-9]+)\.html /zhidao/question\.php\?id=$1
# RewriteRule /zp/index_(.*)_([0-9]+)\.html /zp/index\.php\?company=$1&PageNo=$2
# RewriteRule /zp/company_([0-9]+)\.html /zp/company\.php\?comid=$1
# RewriteRule /jianzhao/index_(.*)_([0-9]+)\.html /jianzhao/index\.php\?keyword=$1&PageNo=$2 |
|