VPS侦探论坛

 找回密码
 注册
查看: 4908|回复: 1

求高手帮忙把 httpd.ini 改成 nginx 的.conf规则格式

[复制链接]
发表于 2012-5-4 22:15:09 | 显示全部楼层 |阅读模式

求高手帮忙把 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
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2012-5-5 09:35:04 | 显示全部楼层


不会写伪静态。。。
可以用http://blog.licess.org/convert-apache-htaccess-to-nginx/ 这个转换试试
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-9-22 23:28 , Processed in 0.024891 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表