Url 如何在IIS 8中编写重写规则,以便所有流量都指向https://www.*是否从http://*.com下载?

Url 如何在IIS 8中编写重写规则,以便所有流量都指向https://www.*是否从http://*.com下载?,url,redirect,iis,ssl,url-rewriting,Url,Redirect,Iis,Ssl,Url Rewriting,我有以下根级别的URL,人们可以访问这些URL: 1. http://example.com 2. http://www.example.com 3. https://example.com 4. https://www.example.com 如何确保1、2和3在IIS 8中始终使用重写规则重定向到4?当然,它应该保留附加的任何辅助信息(例如,/images/myfile.jpg?query=string&other=string)您可以尝试此规则

我有以下根级别的URL,人们可以访问这些URL:

1. http://example.com
2. http://www.example.com
3. https://example.com
4. https://www.example.com
如何确保1、2和3在IIS 8中始终使用重写规则重定向到4?当然,它应该保留附加的任何辅助信息(例如,
/images/myfile.jpg?query=string&other=string

您可以尝试此规则