Difference between revisions of "IIS URL Rewrite"

From MgmtWiki
Jump to: navigation, search
(Created page with "==Full Title== Using Windows Server URL Rewrite Module 2.1 for IIS 7 and above (Server 2012 and above). ==Context== *As of 2019-08-16 the current version of the rewrite module...")
 
(Context)
Line 4: Line 4:
 
*As of 2019-08-16 the current version of the rewrite module was 2.1.
 
*As of 2019-08-16 the current version of the rewrite module was 2.1.
 
*It can be downloaded from here https://www.iis.net/downloads/microsoft/url-rewrite
 
*It can be downloaded from here https://www.iis.net/downloads/microsoft/url-rewrite
** DO NOT click down load at the top as you might get X86 verion. To be sure you have the X64 version go down to the detail list and click on X64.
+
** DO NOT click down load at the top as you might get X86 version. To be sure you have the X64 version go down to the detail list and click on X64.
 
*Restart IIS (or reboot if you are not sure if your machine is up-to-date.
 
*Restart IIS (or reboot if you are not sure if your machine is up-to-date.
 +
 +
==Example==
 +
#Open Internet Information services (IIS) manager (for example from administrative tools)
 +
#Click on the Server in the left pane (click a second time if you don't see sites)
 +
#Click on sites
 +
#Clink on (typically) Default Web Site (the rewrite rules created here will apply to all of the sub-sites, which is probably the place to be)
 +
#Double click on "URL Rewrite" in the center pane. - the assumption here is that there are no existing rules, if there are it gets complicated.
 +
#Click "Add Rule" in the right pane.
 +
#Give the rule a name like "fix https"
 +
 +
 +
 +
 +
==References==
 +
*[https://docs.microsoft.com/en-us/iis/extensions/url-rewrite-module/using-the-url-rewrite-module#url-rewrite-20-features Using the URL Rewrite Module]
 +
*[https://docs.microsoft.com/en-us/iis/extensions/url-rewrite-module/url-rewrite-module-video-walkthrough Using the URL rewrite module - video walkthrough]
 +
 +
[[Category:Windows Server]]

Revision as of 18:24, 16 August 2019

Full Title

Using Windows Server URL Rewrite Module 2.1 for IIS 7 and above (Server 2012 and above).

Context

  • As of 2019-08-16 the current version of the rewrite module was 2.1.
  • It can be downloaded from here https://www.iis.net/downloads/microsoft/url-rewrite
    • DO NOT click down load at the top as you might get X86 version. To be sure you have the X64 version go down to the detail list and click on X64.
  • Restart IIS (or reboot if you are not sure if your machine is up-to-date.

Example

  1. Open Internet Information services (IIS) manager (for example from administrative tools)
  2. Click on the Server in the left pane (click a second time if you don't see sites)
  3. Click on sites
  4. Clink on (typically) Default Web Site (the rewrite rules created here will apply to all of the sub-sites, which is probably the place to be)
  5. Double click on "URL Rewrite" in the center pane. - the assumption here is that there are no existing rules, if there are it gets complicated.
  6. Click "Add Rule" in the right pane.
  7. Give the rule a name like "fix https"



References