我的阿里云虚拟主机不支持httpd.ini 能帮我转换一下吗Web.Config 谢谢-问答-阿里云开发者社区-阿里云

开发者社区> 问答> 正文
阿里云
为了无法计算的价值
打开APP
阿里云APP内打开

我的阿里云虚拟主机不支持httpd.ini 能帮我转换一下吗Web.Config 谢谢

[ISAPI_Rewrite]

3600 = 1 hour

CacheClockRate 3600

RepeatLimit 32

RewriteRule ^(.)/(.).asp?(.*)=([0-9]+)$ $1/404.html [I]
RewriteRule ^(.)/(.).asp$ $1/404.html [I]
RewriteRule ^(.*)/index.html$ $1/index.asp [I]

RewriteRule ^(.*)/diannao([0-9]+)/ $1/diannaolist\.asp\?page=$2 [I]
RewriteRule ^(.*)/diannao/ $1/diannaolist.asp [I]
RewriteRule ^(.*)/diannaoshow([0-9]+)/ $1/diannaoshow\.asp\?id=$2 [I]
RewriteRule ^(.*)/game([0-9]+)/ $1/gamelist\.asp\?page=$2 [I]
RewriteRule ^(.*)/game/ $1/gamelist.asp [I]
RewriteRule ^(.*)/gameshow([0-9]+)/ $1/gameshow\.asp\?id=$2 [I]
RewriteRule ^(.*)/tiyu([0-9]+)/ $1/tiyulist\.asp\?page=$2 [I]
RewriteRule ^(.*)/tiyu/ $1/tiyulist.asp [I]
RewriteRule ^(.*)/tiyushow([0-9]+)/ $1/tiyushow\.asp\?id=$2 [I]
RewriteRule ^(.*)/shenghuo([0-9]+)/ $1/shenghuolist\.asp\?page=$2 [I]
RewriteRule ^(.*)/shenghuo/ $1/shenghuolist.asp [I]
RewriteRule ^(.*)/shenghuoshow([0-9]+)/ $1/shenghuoshow\.asp\?id=$2 [I]
RewriteRule ^(.*)/yule([0-9]+)/ $1/yulelist\.asp\?page=$2 [I]
RewriteRule ^(.*)/yule/ $1/yulelist.asp [I]
RewriteRule ^(.*)/yuleshow([0-9]+)/ $1/yuleshow\.asp\?id=$2 [I]
RewriteRule ^(.*)/jiankang([0-9]+)/ $1/jiankanglist\.asp\?page=$2 [I]
RewriteRule ^(.*)/jiankang/ $1/jiankanglist.asp [I]
RewriteRule ^(.*)/jiankangshow([0-9]+)/ $1/jiankangshow\.asp\?id=$2 [I]
RewriteRule ^(.*)/qinggan([0-9]+)/ $1/qingganlist\.asp\?page=$2 [I]
RewriteRule ^(.*)/qinggan/ $1/qingganlist.asp [I]
RewriteRule ^(.*)/qingganshow([0-9]+)/ $1/qingganshow\.asp\?id=$2 [I]
RewriteRule ^(.*)/yishu([0-9]+)/ $1/yishulist\.asp\?page=$2 [I]
RewriteRule ^(.*)/yishu/ $1/yishulist.asp [I]
RewriteRule ^(.*)/yishushow([0-9]+)/ $1/yishushow\.asp\?id=$2 [I]
RewriteRule ^(.*)/other([0-9]+)/ $1/otherlist\.asp\?page=$2 [I]
RewriteRule ^(.*)/other/ $1/otherlist.asp [I]
RewriteRule ^(.*)/othershow([0-9]+)/ $1/othershow\.asp\?id=$2 [I]

RewriteRule ^(.*)/diannao([0-9]+) $1/diannaolist\.asp\?page=$2 [I]
RewriteRule ^(.*)/diannao $1/diannaolist.asp [I]
RewriteRule ^(.*)/diannaoshow([0-9]+) $1/diannaoshow\.asp\?id=$2 [I]
RewriteRule ^(.*)/game([0-9]+) $1/gamelist\.asp\?page=$2 [I]
RewriteRule ^(.*)/game $1/gamelist.asp [I]
RewriteRule ^(.*)/gameshow([0-9]+) $1/gameshow\.asp\?id=$2 [I]
RewriteRule ^(.*)/tiyu([0-9]+) $1/tiyulist\.asp\?page=$2 [I]
RewriteRule ^(.*)/tiyu $1/tiyulist.asp [I]
RewriteRule ^(.*)/tiyushow([0-9]+) $1/tiyushow\.asp\?id=$2 [I]
RewriteRule ^(.*)/shenghuo([0-9]+) $1/shenghuolist\.asp\?page=$2 [I]
RewriteRule ^(.*)/shenghuo $1/shenghuolist.asp [I]
RewriteRule ^(.*)/shenghuoshow([0-9]+) $1/shenghuoshow\.asp\?id=$2 [I]
RewriteRule ^(.*)/yule([0-9]+) $1/yulelist\.asp\?page=$2 [I]
RewriteRule ^(.*)/yule $1/yulelist.asp [I]
RewriteRule ^(.*)/yuleshow([0-9]+) $1/yuleshow\.asp\?id=$2 [I]
RewriteRule ^(.*)/jiankang([0-9]+) $1/jiankanglist\.asp\?page=$2 [I]
RewriteRule ^(.*)/jiankang $1/jiankanglist.asp [I]
RewriteRule ^(.*)/jiankangshow([0-9]+) $1/jiankangshow\.asp\?id=$2 [I]
RewriteRule ^(.*)/qinggan([0-9]+) $1/qingganlist\.asp\?page=$2 [I]
RewriteRule ^(.*)/qinggan $1/qingganlist.asp [I]
RewriteRule ^(.*)/qingganshow([0-9]+) $1/qingganshow\.asp\?id=$2 [I]
RewriteRule ^(.*)/yishu([0-9]+) $1/yishulist\.asp\?page=$2 [I]
RewriteRule ^(.*)/yishu $1/yishulist.asp [I]
RewriteRule ^(.*)/yishushow([0-9]+) $1/yishushow\.asp\?id=$2 [I]
RewriteRule ^(.*)/other([0-9]+) $1/otherlist\.asp\?page=$2 [I]
RewriteRule ^(.*)/other $1/otherlist.asp [I]
RewriteRule ^(.*)/othershow([0-9]+) $1/othershow\.asp\?id=$2 [I]

RewriteRule ^(.*)/go/ $1/getinfo.asp [I]

展开
收起
爱就此生 2017-05-14 17:09:34 3237 0
1 条回答
写回答
取消 提交回答
  • dongshan8
    旺旺:nectar2。

    题主您好,

    这里有一个帖子,说可以尝试IIS7的规则转换功能:https://forums.iis.net/t/1170980.aspx

    您可以试试。

    2019-07-17 21:10:05
    赞同 展开评论 打赏
问答分类:
相关产品:
问答排行榜
最热
最新
相关电子书
更多
基于英特尔 SSD 的虚拟机缓存解决SSD
立即下载
使用C++开发PHP7扩展
立即下载
使用C++11开发PHP7扩展
立即下载