Iis 7 对于子文件夹和文件,IIS7 301使用web.config文件…(不工作)重定向

Iis 7 对于子文件夹和文件,IIS7 301使用web.config文件…(不工作)重定向,iis-7,web-config,http-status-code-301,Iis 7,Web Config,Http Status Code 301,IIS7 301使用web.config文件重定向 不工作 <location path="ProductsAndServices/CustomProfessionalServices.aspx"> <system.webServer> <httpRedirect enabled="true" destination="ProductsAndServices/business-video-platform.aspx" http

IIS7 301使用web.config文件重定向

不工作

<location path="ProductsAndServices/CustomProfessionalServices.aspx">
        <system.webServer>
            <httpRedirect enabled="true" destination="ProductsAndServices/business-video-platform.aspx" httpResponseStatus="Permanent" />
        </system.webServer>
    </location>
在上面的位置标签中,我尝试使用ASCII码(如News/PressReleases/PressReleases.aspx)给出一个路径,但它仍然不起作用

然后我试图给文件的位置,它也不工作。如下图所示

<location path="ULNotifier.zip">
        <system.webServer>
            <httpRedirect enabled="true" destination="Support/Resources.aspx?link=Support" httpResponseStatus="Permanent" />
        </system.webServer>
    </location>
但当我尝试一个页面时,它的工作方式如下所示

<location path="Solutions.aspx">
        <system.webServer>
            <httpRedirect enabled="true" destination="Solutions/OnlineVideoPlatform.aspx?link=Solutions" httpResponseStatus="Permanent" />
        </system.webServer>
    </location>
有人能解决这个问题吗