繁体   English   中英

重定向到另一台服务器时,IIS URL 重写不起作用

[英]IIS URL Rewrite is not working when redirecting to another server

我需要使用 IIS 中的 URL 重写将链接重定向到不同的服务器。 这些是 SRSS 报告链接。 我尝试了很多不同的配置,我已经放弃了。

旧链接:

http://OldServer/ReportServer/Pages/ReportViewer.aspx?(reportnamehere - 需要将此部分复制到新链接)

http://NewServer/ReportServer/Pages/ReportViewer.aspx?reportnamehere

任何想法如何实现?

这是一个非常简单的规则要求。 像这样的事情会起作用。 基本上只是重定向到附加整个 URL 的新服务器

<rule name="Redirect to newServer" stopProcessing="true">  
    <match url="(.*)" />      
    <action type="Redirect" url="http://NewServer/{R:1}" redirectType="Temporary" />  
</rule>  

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM