15053971836 注册 / 登录

伪静态在线转换工具iis

时间: 阅读:407
伪静态在线转换工具iis

最佳回答

清风若雨

清风若雨

2023-01-16 00:41:38

要看你用哪一个伪静态工具才能确定
不同平台还有区别,IIS6和IIS7都有不同的。
甚至还有提供UI操作,请首选合适的ReWrite工具后,查看对应实例。
其实APACHE的你都写出来了,只是格式变化一定难不倒你

最新回答共有2条回答

  • 游客
    回复
    2023-01-16 02:02:40

    1、安装ISAPI_REWRITE:在iis里添加rewrite.dll
    2、httpd.ini 文件书写规则
    将http://localhost/rewrite.asp?page=1伪造成http://localhost/rewrite_1.html
    RewriteRule /rewrite_(d+).html /rewrite.asp?page=$1 [N,I]
    将http://localhost/rewrite.asp?page=1&id=1伪造成http://localhost/rewrite_1_1.html
    RewriteRule /rewrite_(d+)_(d+).html /rewrite.asp?page=$1&id=$2 [N,I]
    将http://localhost/rewrite.asp?page=1#abc伪造成http://localhost/rewrite_1.html#abc
    RewriteRule /rewrite_(d+).html#(d+) /rewrite.asp?page=$1#$2 [N,I]
    3、asp代码示例
    page=cint(request("page"))
    id=request("id")
    If page="" or page<1 Then page=1
    If id="" or id<1 Then id=1
    For i=1 to 10
    Response.Write "<a href='rewrite_"&i&"_"&id&".html'>"&i&"</a>