求高手帮忙把 httpd.ini 改成 nginx 的.conf规则格式
求高手帮忙把 httpd.ini 改成 nginx 的.conf规则格式,因为在下实在不懂这种转换。。。httpd.ini 文件内容如下:
# 3600 = 1 hour
CacheClockRate 3600
RepeatLimit 32
# Block external access to the httpd.ini and httpd.parse.errors files
RewriteRule /httpd(?:\.ini|\.parse\.errors).* /
# Block external access to the Helper ISAPI Extension
RewriteRule .*\.isrwhlp /
RewriteRule /index\.html /index\.php
RewriteRule /sitemap.htm /sitemap.php
RewriteRule /(*)/(*)\.html /$1/$2\.php
RewriteRule /(*)/(.*)detail_(+)\.html /$1/$2detail\.php\?$2id=$3
RewriteRule /(*)/index_(+)\.html /$1/index\.php\?PageNo=$2
RewriteRule /news/news_(+)\.html /news/news\.php\?newsclassid=$1
RewriteRule /news/news_(+)_(+)\.html /news/news\.php\?newsclassid=$1&PageNo=$2
RewriteRule /cz/chuzu_(+)\.html /cz/czdetail\.php\?czid=$1
RewriteRule /cs/chushou_(+)\.html /cs/csdetail\.php\?csid=$1
RewriteRule /qz/qiuzu_(+)\.html /qz/qzdetail\.php\?qzid=$1
RewriteRule /qg/qiugou_(+)\.html /qg/qgdetail\.php\?qgid=$1
RewriteRule /zhidao/question_(+)\.html /zhidao/question\.php\?id=$1
# RewriteRule /zp/index_(.*)_(+)\.html /zp/index\.php\?company=$1&PageNo=$2
# RewriteRule /zp/company_(+)\.html /zp/company\.php\?comid=$1
# RewriteRule /jianzhao/index_(.*)_(+)\.html /jianzhao/index\.php\?keyword=$1&PageNo=$2 不会写伪静态。。。
可以用http://blog.licess.org/convert-apache-htaccess-to-nginx/ 这个转换试试
页:
[1]