TechNet
Products
IT Resources
Downloads
Training
Support
Products
Windows
Windows Server
System Center
Microsoft Edge
Office
Office 365
Exchange Server
SQL Server
SharePoint Products
Skype for Business
See all products »
Resources
Channel 9 Video
Evaluation Center
Learning Resources
Microsoft Tech Companion App
Microsoft Technical Communities
Microsoft Virtual Academy
Script Center
Server and Tools Blogs
TechNet Blogs
TechNet Flash Newsletter
TechNet Gallery
TechNet Library
TechNet Magazine
TechNet Wiki
Windows Sysinternals
Virtual Labs
Solutions
Networking
Cloud and Datacenter
Security
Virtualization
Updates
Service Packs
Security Bulletins
Windows Update
Trials
Windows Server 2016
System Center 2016
Windows 10 Enterprise
SQL Server 2016
See all trials »
Related Sites
Microsoft Download Center
Microsoft Evaluation Center
Drivers
Windows Sysinternals
TechNet Gallery
Training
Expert-led, virtual classes
Training Catalog
Class Locator
Microsoft Virtual Academy
Free Windows Server 2012 courses
Free Windows 8 courses
SQL Server training
Microsoft Official Courses On-Demand
Certifications
Certification overview
Special offers
MCSE Cloud Platform and Infrastructure
MCSE: Mobility
MCSE: Data Management and Analytics
MCSE Productivity
Other resources
Microsoft Events
Exam Replay
Born To Learn blog
Find technical communities in your area
Azure training
Official Practice Tests
Support options
For business
For developers
For IT professionals
For technical support
Support offerings
More support
Microsoft Premier Online
TechNet Forums
MSDN Forums
Security Bulletins & Advisories
Not an IT pro?
Microsoft Customer Support
Microsoft Community Forums
Sign in
Home
Library
Wiki
Learn
Gallery
Downloads
Support
Forums
Blogs
Resources For IT Professionals
United States (English)
Россия (Pусский)
中国(简体中文)
Brasil (Português)
Skip to locale bar
Post an article
Translate this page
Powered by
Microsoft® Translator
Wikis - Page Details
First published by
George Chrysovaladis Grammatikos
(MVP, Microsoft Community Contributor)
When:
25 Jun 2018 11:47 AM
Last revision by
George Chrysovaladis Grammatikos
(MVP, Microsoft Community Contributor)
When:
12 Sep 2018 12:52 PM
Revisions:
11
Comments:
6
Options
Subscribe to Article (RSS)
Share this
Engage!
Wiki Ninjas Blog
(
Announcements
)
Wiki Ninjas on Twitter
TechNet Wiki Discussion Forum
Can You Improve This Article?
Positively!
Click Sign In to add the tip, solution, correction or comment that will help other users.
Report inappropriate content using
these instructions
.
Wiki
>
TechNet Articles
>
Windows IIS : Create URL Rewrite rule for IIS web site redirect
Windows IIS : Create URL Rewrite rule for IIS web site redirect
Article
History
Windows IIS : Create URL Rewrite rule for IIS web site redirect
Table of Contents
What is URL Rewrite Module
Prerequisites
Create the Rewrite Rule
Step 1. the IIS Manager
Step 2. The {Features View} pane
Step 3. The action pane
Step 4. The inbound rule
Step 5. Add a condition
Step 6. Set the action properties
Conclusion
In this post, we will see that in a few simple steps we can create a URL Rewrite to redirect website traffic from HTTP to HTTPS.
What is URL Rewrite Module
The URL Rewrite Module is an extension for IIS. This module gives the ability to Web Administrators to implement rules which can improve the usability and search friendliness of a website.
Prerequisites
IIS 7 or higher
URL Rewrite module installed. Download URL Rewrite 2.1 module from this
link
.
SSL Certificate installed and configured
Create the Rewrite Rule
Step 1. the IIS Manager
Open IIS Manager and, go to Start Page - [Server Name] - Sites - [Web Site Name]
Step 2. The {Features View} pane
From the {Features View} pane, open URL Rewrite module.
Step 3. The action pane
From the right on Action pane, click [Add Rules...] - Blank rule
Step 4. The inbound rule
At this point, we create the Inbound Rule, as the below image shows.
Step 5. Add a condition
Next, we must Add a Condition, like the one in the next image.
Condition Input
{HTTPS}
Add a condition stating that {HTTPS} is OFF
Pattern
^OFF$
This pattern ensures that the rule executes ONLY when the request arrives, and will not execute infinitely.
Step 6. Set the action properties
In the final step, we configure the Action, on Action Properties we add the value :
[https://{HTTP_HOST}/{R:1}]
, select
Redirect type: Permanent (301)
and click
Apply
.
Conclusion
In this article, we read how we can redirect HTTP traffic to HTTPS using IIS URL Rewrite module.