简体   繁体   English

IIS7 HTTPS 301重定向

[英]IIS7 HTTPS 301 redirect

I have two websites running on the same IIS7 instance - let's call them oldname.com and newname.com (the newer one is simply a rebranded version of the old one). 我有两个在同一个IIS7实例上运行的网站-我们将它们称为oldname.com和newname.com(较新的版本只是旧版本的重命名版本)。 Both sites are SSL-enabled. 这两个站点都启用了SSL。 The certificate for oldname.com has expired. oldname.com的证书已过期。 I'm trying to set up an HTTP301 'moved permanently' redirect for requests to http://oldname.com to be redirected to https://www.newname.com . 我正在尝试设置HTTP301“永久移动”重定向,以将对http://oldname.com的请求重定向到https://www.newname.com That works, but the issue is that visitors to https://oldname.com get the SSL 'certficate expired' warning generated before they reach https://www.newname.com . 可以,但是问题在于访问https://oldname.com的访问者在到达https://www.newname.com之前会收到SSL“证书过期”警告。 Is there any way to overcome this without renewing the certificate for oldname.com? 有什么方法可以解决此问题而无需为oldname.com续订证书?

(Note: visitors to http://oldname.com are redirected to https://www.newname.com perfectly, as one would expect). (请注意:正如人们期望的那样, http//oldname.com的访问者会完美地重定向到https://www.newname.com )。

You could buy a inexpensive SSL Certificate for oldname.com or use a 90 day trial for free. 您可以为oldname.com购买便宜的SSL证书,也可以免费使用90天的试用期。 Hopefully after 90 days the oldname.com will no-longer be indexed. 希望90天之后,oldname.com将不再被索引。 You will still have a problem with people using bookmarks that are for oldname.com 对于使用oldname.com书签的人,您仍然会遇到问题

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

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