[英]IIS 7.5 http-redirect inherits from default web site?
Default web site is set to redirect to a startup-application: 默认网站设置为重定向到启动应用程序:
http://foo.bar.com
becomes https://foo.bar.com/startapplication
and it works fine. http://foo.bar.com
变为https://foo.bar.com/startapplication
,并且可以正常运行。
However, i have another application on the web server and it should redirect to itself if called with http. 但是,我在Web服务器上还有另一个应用程序,如果用http调用,它应该重定向到自身。
So for example this: 因此,例如:
http://foo.bar.com/application
Should become this: 应该变成这个:
https://foo.bar.com/application
BUT 但
it becomes: 它成为了:
https://foo.bar.com/startapplication/application
It seems that the web server ( iis 7.5 ) inherits the http redirect in some kind of way from the default web site. 似乎Web服务器(iis 7.5)以某种方式从默认网站继承了http重定向。
Is this standard behaviour or am i missing something here? 这是标准行为还是我在这里错过了一些东西?
Install the URL Rewrite extension (if you haven't already) and configure an inbound rule as seen in the screenshots. 安装URL Rewrite扩展名(如果尚未安装)并配置入站规则,如屏幕快照所示。 Don't forget to disable your redirects. 不要忘记禁用重定向。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.