IIS7 needs to confirm whether the "URL REWRITE2" pseudo-static module is installed. If you have already installed it, you can skip it. URL REWIRTE (pseudo-static module) Download address: http://www.iis.net/downloads/microsoft/url-rewrite Step 1: Select the site, "URL rewrite", if you install the English version, it should be [Url rewrite] Step 2: Add a "Blank Rule" Step 3: Add rules Name: Matches URL pattern: Add condition: Condition: Action Type Selection: Redirect Redirect URL: Then save it Final effect picture Logical grouping in conditions First refer to the logical grouping information in the figure above.
Advanced version (directly add pseudo-static to web.config) <?@xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> <rewrite> <rules> <rule name="HTTP to HTTPS redirect" stopProcessing="true"> <match url="(.*)" /> <conditions> <add input="{HTTPS}" pattern="off" ignoreCase="true" /> </conditions> <action type="Redirect" redirectType="Found" url="https://{HTTP_HOST}/{R:1}" /> </rule> </rules> </rewrite> </system.webServer> </configuration> This is the end of this article about IIS7 IIS8 http automatically jump to HTTPS (port 80 jump to port 443). For more related content about http automatically jump to HTTPS, please search 123WORDPRESS.COM's previous articles or continue to browse the following related articles. I hope everyone will support 123WORDPRESS.COM in the future! You may also be interested in:
|
>>: How to solve the problem that mysql cannot be closed
If the server's images are hotlinked by other...
All of us webmasters know that when optimizing a ...
This article example shares the specific code of ...
Types of Indexes in MySQL Generally, they can be ...
Today I learned a new CSS special effect, the wav...
Implementation of navigation bar, fixed top navig...
The property names often heard in web design: con...
As the platform continues to grow, the project...
Overview MySQL also has its own event scheduler, ...
Table of contents 1. Prototype 2. Prototype point...
Preface During project development, due to differ...
question: Recently, garbled data appeared when de...
Table of contents 1. Use help information 2. Crea...
The question is referenced from: https://www.zhih...
a : Indicates the starting or destination positio...