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
1. Introduction When writing animation effects fo...
This article example shares the specific code of ...
one. wget https://dev.mysql.com/get/mysql57-commu...
Table of contents 0x01 Failed to load the driver ...
This article shares the specific code of js to ac...
Preface Reduce is one of the new conventional arr...
Table of contents Preface 1. Error log 2. Binary ...
Customizing images using Dockerfile Image customi...
[Looking at all the migration files on the Intern...
CJK is the abbreviation of CJK Unified Ideographs...
Preface A requirement I had previously made, to s...
Table of contents The order in which MySQL reads ...
Table of contents Scenario Analysis Development S...
Docker download address: http://get.daocloud.io/#...
introduction Most people who have used databases ...