[介绍]
httpd.ini 转 web.config 应该怎么写
|
|
我对这个代码不懂,谁能帮我写下啊,win主机
我的代码是这样的:
[ISAPI_Rewrite]
RewriteRule ^(.*)/index.html$ $1/index.php [I,L]
RewriteRule ^(.*)/weather-([0-9]+)-([0-9]+)\.html$ $1/index.php\?m=weather&cityid=$2&xid=$3 [I,L]
RewriteRule ^(.*)/news-c([0-9]+)-([0-9]+)\.html$ $1/index.php\?m=news&class_id=$2&page=$3 [I,L]
RewriteRule ^(.*)/news-c([0-9]+)\.html$ $1/index.php\?m=news&class_id=$2 [I,L]
RewriteRule ^(.*)/newsinfo-([0-9]+)\.html$ $1/index.php\?m=newsinfo&aid=$2 [I,L]
RewriteRule ^(.*)/liansuo-([0-9]+)-([0-9]+)\.html$ $1/index.php\?m=liansuohotel&cityid=$2&chain_id=$3 [I,L]
RewriteRule ^(.*)/liansuo-([a-zA-Z_]+)-([0-9]+)\.html$ $1/index.php\?m=liansuohotel&$2=$3 [I,L]
RewriteRule ^(.*)/city-([0-9]+)\.html$ $1/index.php\?m=city&cityid=$2 [I,L]
RewriteRule ^(.*)/hotel-([0-9]+)-([0-9]+)\.html$ $1/index.php\?m=hotelinfo&cityid=$2&hotel_id=$3 [I,L]
RewriteRule ^(.*)/hotel-([0-9]+)\.html$ $1/index.php\?m=hotelinfo&hotel_id=$2 [I,L]
RewriteRule ^(.*)/(hotelmap|hotelcomment|hotelnearby|hotelpicture|hotelquestion|hotellable)-([0-9]+)\.html$ $1/index.php\?m=$2&hotel_id=$3 [I,L]
RewriteRule ^(.*)/(comment|question|weather|searchlist)-([0-9]+)-([0-9]+)\.html$ $1/index.php\?m=$2&cityid=$3&page=$4 [I,L]
RewriteRule ^(.*)/hotellist-([0-9]+)\.html(?:\?(.*))? $1/index.php\?m=hotellist&cityid=$2&$3 [I,L]
RewriteRule ^(.*)/(comment|question|weather|map|hotellist|searchlist)-([0-9]+)\.html$ $1/index.php\?m=$2&cityid=$3 [I,L]
RewriteRule ^(.*)/lable-cityid([0-9]+)-([0-9]+)-([0-9]+)\.html$ $1/index.php\?m=lable&cityid=$2&classid=$3&page=$4 [I,L]
RewriteRule ^(.*)/lable-(pid|cityid)([0-9]+)-([0-9]*)\.html$ $1/index.php\?m=lable&$2=$3&classid=$4 [I,L]
RewriteRule ^(.*)/lable-([0-9]+)\.html$ $1/index.php\?m=lable&classid=$2 [I,L]
RewriteRule ^(.*)/admin$ $1/index.php\?m=admin [I,L]
RewriteRule ^(.*)/(liansuo|allcity|comment|question|map|news|special|lable|weather|order|searchlist|map|hotellist|allcitylable|friendlink|allcity|help|liansuocity|orderlist)\.html$ $1/index.php\?m=$2 [I,L] |
|
|
|
|
|
|
|
|
|
|
lwbo1987
发表于 2011-4-7 14:49:17
|
显示全部楼层
|
|
|
|
|
|
|
|
|
|
南华
发表于 2011-4-7 14:50:39
|
显示全部楼层
|
|
|
|
|
|
|
|
|
|
lwbo1987
发表于 2011-4-7 14:51:45
|
显示全部楼层
|
|
|
|
|
|
|
|
|
|
add.c
发表于 2011-4-7 16:19:17
|
显示全部楼层
回复 1# 的帖子
|
去下载iis 7的 rewrite模块,里面有自动转换功能 |
|
|
|
|
|
|
|
|
|
|
南华
发表于 2011-4-20 01:54:55
|
显示全部楼层
原帖由 add.c 于 2011-4-7 04:19 PM 发表 
去下载iis 7的 rewrite模块,里面有自动转换功能
请问在哪儿下载?有地址吗? |
|
|
|
|
|
|
|
|
|
|
lwbo1987
发表于 2011-4-20 09:06:25
|
显示全部楼层
|
|
|
|
|
|
|
|