将URL从HTTPS重写为HTTPS
我有一个URL *我需要将其重定向到 *
*在IIS 8.0中绑定,但没有SSL证书,我们不希望为了成本原因购买一个。 绑定在IIS 8.0中并具有SSL证书。将URL从HTTPS重写为HTTPS
它们位于同一台服务器上的同一个站点上。如果有人来到 http://a.site.edu *他们看到相同的网站,就好像他们来到http://a.nother.site.edu。这就是我们想要的。 如果他们来到https://a.nother.site.edu,那按预期工作。 然而,当他们来到https://a.site.edu,他们得到一个错误,所以我们希望他们重定向到https://a.nother.site.edu我们可以从 https://a.site.edu *至* https://a.nother.site.edu没有重定向收到错误信息?我们在Windows 2012上使用安装了URL Rewrite 2.0的IIS 8.0。 我已经尝试了多种类型的配置,但我总是得到一个安全错误 是这样的:
失败
与服务器的连接,而页面加载了重置安全连接。
The page you are trying to view cannot be shown because the authenticity of the received data could not be verified.
Please contact the website owners to inform them of this problem.
感谢您的回复。
由于SSL验证在重定向发生之前完成,因此无法重定向SSL验证错误。没有解决方法。
是否可以从https重定向到http?例如,我们可以将https://a.site.edu重定向到http://a.nother.site.edu吗?这是同样的问题吗?感谢您的快速回复。 –
我刚查过另一个条目,看起来是同样的问题。再次感谢。 –
[web.config中的IIS重写规则将HTTPS请求重定向到HTTP]的可能重复(http://stackoverflow.com/questions/25767014/iis-rewrite-rule-in-web-config-to-redirect- https-requests-to-http) – AaronS