繁体   English   中英

IIS 7.5 http-redirect是否从默认网站继承?

[英]IIS 7.5 http-redirect inherits from default web site?

默认网站设置为重定向到启动应用程序:

http://foo.bar.com变为https://foo.bar.com/startapplication ,并且可以正常运行。

但是,我在Web服务器上还有另一个应用程序,如果用http调用,它应该重定向到自身。

因此,例如:

http://foo.bar.com/application

应该变成这个:

https://foo.bar.com/application

它成为了:

https://foo.bar.com/startapplication/application

似乎Web服务器(iis 7.5)以某种方式从默认网站继承了http重定向。

这是标准行为还是我在这里错过了一些东西?

安装URL Rewrite扩展名(如果尚未安装)并配置入站规则,如屏幕快照所示。 不要忘记禁用重定向。

将规则http重写为https-第1部分将规则http重写为https-第2部分

暂无
暂无

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

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