[英]IIS URL Rewrite is not working when redirecting to another server
I need to redirect links to a different server using URL rewrite in IIS.我需要使用 IIS 中的 URL 重写将链接重定向到不同的服务器。 These are SRSS report links.
这些是 SRSS 报告链接。 I have tried so many different configurations i have given up.
我尝试了很多不同的配置,我已经放弃了。
Old Link:旧链接:
http://OldServer/ReportServer/Pages/ReportViewer.aspx?(reportnamehere - need to copy this part across to new link) http://OldServer/ReportServer/Pages/ReportViewer.aspx?(reportnamehere - 需要将此部分复制到新链接)
http://NewServer/ReportServer/Pages/ReportViewer.aspx?reportnamehere http://NewServer/ReportServer/Pages/ReportViewer.aspx?reportnamehere
Any ideas how this can be achieved?任何想法如何实现?
This is a very simple rule requirement.这是一个非常简单的规则要求。 Something like this will work.
像这样的事情会起作用。 Basically just redirects to a new server appending the entire URL
基本上只是重定向到附加整个 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.