http jump https + domain name jump .com jump .cn

 Recently, due to the needs of the company, the original domain name used is http://www.xxx.com. Recently, because of the connection function with the third party and embedding the third-party page, it is necessary to

http is replaced by https, but some users are already used to using the original http://www.xxx.com if they suddenly change to https://www.XXX.cn, there will be some users

Users can't access it. Note here that the original http was replaced by https, and .com was replaced by .cn, so here you need to do a url rewrite in iis.

1. First, when binding a domain name to a website, first bind a domain name with https port 443, the IP address is not assigned, and then bind a http port to 80

Of course, the two https and http are two different domain names corresponding to you, but the servers pointed to are the same.

2. Find the url rewrite in the IIS configuration (note that it is not the url redirected one), and follow the steps below. Pay attention to several places: 2-1, mode,

2-2. Conditions and logical grouping in conditions, 2-3. Operational attributes: this one is the most important, here is because my two domain names need to point to one cn at the same time, so I just wrote it directly

Domain name, if you need different domain names to point to different, you can enter a general match: {HTTP_HOST} instead of your domain name does not contain the port.

OK After the above operations, the pro-test is valid. At present, you can enter .com to jump to cn, and the automatic jumps are https.


Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326027978&siteId=291194637