请把iis的伪静态规则转换成Nginx Web Server这个下面的规则

[ISAPI_Rewrite]

# 3600 = 1 hour
CacheClockRate 3600

RepeatLimit 32

# Protect httpd.ini and httpd.parse.errors files
# from accessing through HTTP

# AS规则

#其它
RewriteRule /indexarea.html /indexarea.php [I]
RewriteRule /help.html /help.php [I]
RewriteRule /index.html /index.php [I]
RewriteRule /indexed.html /indexed.php [I]
RewriteRule /aboutus.html /aboutus.php [I]
RewriteRule /UserSponsored.html /UserSponsored.php [I]
RewriteRule /promise.html /promise.php [I]
RewriteRule /links.html /links.php [I]
RewriteRule /copyright.html /copyright.php [I]
RewriteRule /addurl.html /addurl.php [I]
RewriteRule /register.html /register.php [I]
RewriteRule /Information_([0-9]+).html /Information.php\?ipage=$1 [I]
RewriteRule /managenews_([0-9]+).html /managenews.php\?ipage=$1 [I]
RewriteRule /AuditedSite_([0-9]+).html /AuditedSite.php\?ipage=$1 [I]
RewriteRule /info-([0-9]+).html /showInfo.php\?id=$1 [I]
RewriteRule /info_([0-9]+)_([0-9]+).html /Information.php\?InformationSort=$1&ipage=$2 [I]

#Area.php
#Area.php?o=1&Area_id=20&City_id=99&page=1
#Area.php?o=1&Area_id=8&page=1
RewriteRule /Area_([0-9]+)_([0-9]+)_([0-9]+)_(.*)_([0-9]+).html /Area.php\?o=$1&Area_id=$2&City_id=$3&Distype=$4&ipage=$5 [I]
RewriteRule /Area_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+).html /Area.php\?o=$1&Area_id=$2&City_id=$3&ipage=$4 [I]
RewriteRule /Area_([0-9]+)_([0-9]+)_(.*)_([0-9]+).html /Area.php\?o=$1&Area_id=$2&Distype=$3&ipage=$4 [I]
RewriteRule /Area_([0-9]+)_([0-9]+)_([0-9]+).html /Area.php\?o=$1&Area_id=$2&ipage=$3 [I]

#localhost/SiteInformation.php?site_id=16&page=1
RewriteRule /([0-9]+)-(.*)-([0-9]+).html$ /SiteInformation.php\?site_id=$1&site=$2&ipage=$3 [I]

#Category.php
#Category.php?o=2&sort_id=3&nsort_id=25&page=1
#Category.php?o=1&sort_id=3&page=2
RewriteRule /Category_([0-9]+)_([0-9]+)_([0-9]+)_(.*)_([0-9]+).html /Category.php\?o=$1&sort_id=$2&nsort_id=$3&Distype=$4&ipage=$5 [I]
RewriteRule /Category_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+).html /Category.php\?o=$1&sort_id=$2&nsort_id=$3&ipage=$4 [I]
RewriteRule /Category_([0-9]+)_([0-9]+)_(.*)_([0-9]+).html /Category.php\?o=$1&sort_id=$2&Distype=$3&ipage=$4 [I]
RewriteRule /Category_([0-9]+)_([0-9]+)_([0-9]+).html /Category.php\?o=$1&sort_id=$2&ipage=$3 [I]

#rank.php?Rtype=Top-Commend-50&page=1
RewriteRule /rank.html /rank.php [I]
RewriteRule /(.*)_([0-9]+)_(.*).html /rank.php\?Rtype=$1&ipage=$2&Distype=$3 [I]
RewriteRule /(.*)_([0-9]+).html /rank.php\?Rtype=$1&ipage=$2 [I]

#new.php
RewriteRule /New-([0-9]+)-(.*).html /New.php\?ipage=$1&?Distype=$2 [I]
RewriteRule /New-([0-9]+).html /New.php\?ipage=$1 [I]

#news.php
RewriteRule /News-([0-9]+).html /News.php\?id=$1 [I]

#Verify.php
RewriteRule /Verify-([0-9]+)-(.*).html /Verify.php\??ipage=$1&Distype=$2 [I]
RewriteRule /Verify-([0-9]+).html /Verify.php\?ipage=$1 [I]
最新回答
情根深种

2024-04-13 06:01:10

太多了,简单看了下,吧[I]改为[L]应该就可以用了