IIS6是能httpd.ini伪静态。IIS7只能用web.config伪静态-问答-阿里云开发者社区-阿里云

开发者社区> 问答> 正文

IIS6是能httpd.ini伪静态。IIS7只能用web.config伪静态

小小灵昆 2015-08-30 13:57:27 9436
[table][tr][td]IIS 6 是能httpd.ini 伪静态。IIS 7 只能用web.config伪静态

以下是IIS 6 的httpd.ini 伪静态规则有谁帮我改成web.config伪静态

[ISAPI_Rewrite]

# 3600 = 1 hour
CacheClockRate 3600

RepeatLimit 32

RewriteCond Host: ^711g\.com$
RewriteRule (.*) http\://www\.711g\.com$1 [I,R]


RewriteRule ^/new_([0-9]*)\.html /new\.php\?id=$1 [L]

RewriteRule ^/goad_([0-9]*)\.html /goad\.php\?id=$1 [L]

RewriteRule ^/go_([0-9]*)\.html /go\.php\?id=$1 [L]

RewriteRule ^/yxzq_([0-9]*)\.html /yxzq\.php\?id=$1 [L]

RewriteRule ^/fahao_([0-9]*)\.html /fahao\.php\?lbfl=$1 [L]

RewriteRule ^/pingtai_([0-9]*)\.html /pingtai\.php\?id=$1 [L]

RewriteRule ^/index_([0-9]*)\.html /index\.php\?time=$1 [L]

RewriteRule ^/index_([0-9]*)_([0-9]*)\.html /index\.php\?time=$1&yeshu=$2 [L]

RewriteRule ^/indexye_([0-9]*)\.html /index\.php\?yeshu=$1 [L]

RewriteRule ^/fahaoye_([0-9]*)\.html /fahao\.php\?yeshu=$1 [L]

RewriteRule ^/gamesye_([0-9]*)\.html /games\.php\?yeshu=$1 [L]

RewriteRule ^/newsye_([0-9]*)\.html /news\.php\?yeshu=$1 [L]

RewriteRule ^/paihangye_([0-9]*)\.html /paihang\.php\?yeshu=$1 [L]

RewriteRule ^/pingtaisye_([0-9]*)\.html /pingtais\.php\?yeshu=$1 [L]

RewriteRule ^/newsye_([0-9]*)_([0-9]*)\.html /news\.php\?yeshu=$1\&?newsid=$2 [L]

RewriteRule ^/fahaoye_([0-9]*)_([0-9]*)\.html /fahao\.php\?yeshu=$1\&?lbfl=$2 [L]

RewriteRule ^/sofahaoye_([0-9]*)_(.*)\.html /sofahao\.php\?yeshu=$1\&?name=$2 [N,I,L,O]

RewriteRule ^/hmlx_([0-9]*)\.html /index\.php\?hmlx=$1 [L]

RewriteRule ^/news_([0-9]*)\.html /news\.php\?newsid=$1 [L]

RewriteRule ^/fahaonei_([0-9]*)\.html /fahaonei\.php\?id=$1 [L]

RewriteRule ^/games_([0-9]*)_([0-9]*)_([0-9]*)_([0-9]*)\.html /games\.php\?hmlx=$1\&ticai=$2\&yxlx=$3\&zt=$4 [L]

RewriteRule ^/paihang_([0-9]*)_([0-9]*)_([0-9]*)_([0-9]*)\.html /paihang\.php\?hmlx=$1\&ticai=$2\&yxlx=$3\&zt=$4 [L]

RewriteRule ^/kaifu_(.*)_([0-9]*)\.html /kaifu\.php\?name=$1&yeshu=$2 [N,I,L,O]

RewriteRule ^/kaifu_(.*)\.html /kaifu\.php\?name=$1 [N,I,L,O]



RewriteRule ^/sofahao_(.*)\.html /sofahao\.php\?name=$1 [N,I,L,O]

RewriteRule ^/sonews_(.*)\.html /sonews\.php\?soname=$1 [N,I,L,O]
Go PHP
分享到
取消 提交回答
全部回答(4)
  • bilibibi
    2015-08-31 19:45:31
    ReIIS6是能httpd.ini伪静态。IIS7只能用web.config伪静态
    IIS7装完Rewrite组件之后有个导入功能,把规则粘进去就可以了
    0 0
  • 零云科技
    2015-08-30 16:41:01
    回 5楼(小小灵昆) 的帖子
    iis7  跟 iis6  规则不一样的  你放里边试试  
    0 0
  • 小小灵昆
    2015-08-30 14:04:36
    ReIIS6是能httpd.ini伪静态。IIS7只能用web.config伪静态
    别人告说我说IIS7只能用web.config伪静态  


    可我买的程序说明是这么写的

    1、确定您的服务器支持MYSQL+PHP
    2、确定您的服务器支持HTTPD.INI伪静态

    第一步:上传upload内全部文件到您的空间目录

    第二步:访问http://您空间域名/diguobeifen

    -------------------------

    ReIIS6是能httpd.ini伪静态。IIS7只能用web.config伪静态
    还没试呢

    -------------------------

    回3楼ivmmff的帖子
    有个也是论坛看到我发的帖子加我Qq说iis7不能用httpd.ini伪静态
    0 0
  • 妙正灰
    2015-08-30 13:58:51
    你能正常阅读这文章么、。、

    -------------------------

    回 2楼(小小灵昆) 的帖子
    你试过,HTTPD.INI 的伪静态方法了么?

    -------------------------

    回 5楼(小小灵昆) 的帖子
    先试试。
    0 0
添加回答
开发与运维
使用钉钉扫一扫加入圈子
+ 订阅

集结各类场景实战经验,助你开发运维畅行无忧

推荐文章
相似问题