【问题标题】:URL Rewrite in IIS on a Shared Hosting Server with Plesk as Hosting panel使用 Plesk 作为主机面板的共享主机服务器上的 IIS 中的 URL 重写
【发布时间】:2015-12-25 13:46:21
【问题描述】:

我有一个经典的 ASP 应用程序,它需要如下所示的 URL 重写

mysite.com/product.asp?prid=100

一定要这样写

mysite.com/product/100/

我在共享服务器上没有直接的服务器访问权限,他们在这里提供 Plesk 作为托管面板

【问题讨论】:

    标签: iis asp-classic url-redirection


    【解决方案1】:

    你需要像这样设置规则

    <rule name="Rewrite to product">
        <match url="^product/([_0-9a-z-]+)" />
        <action type="Rewrite" url="/product.asp?&amp;prid={R:1}" />
    </rule>
    

    【讨论】:

    • 在哪个文件上? web.config ??
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-03-11
    • 1970-01-01
    • 2013-07-07
    • 2011-02-28
    • 2021-10-18
    相关资源
    最近更新 更多