64

I need the Url Rewrite module on my IIS But it does not install and says that I need at least IIS7

2
  • A new version of this phenomenon is that Web Platform Installer says that unfortunately, the module could not be installed, but doesn't give any indication of what went wrong. Commented Mar 17, 2021 at 8:21
  • Please consider changing the preferred answer since the one chosen is no longer fully valid.
    – Dennis
    Commented Aug 23 at 12:24

9 Answers 9

109

the newer version supports win10 out of the box: https://www.iis.net/downloads/microsoft/url-rewrite

8
  • I like this solution more, you can just install it on Windows 10 without changing the Registry.
    – Roboblob
    Commented Mar 29, 2017 at 9:35
  • 100% better solution, worked for me - I am not chaging my registry! Commented Aug 31, 2017 at 9:22
  • 12
    At the time of this comment, the above link goes to version 2.0, but version 2.1 has been released. This page appears to be more recent and non-version-specific: iis.net/downloads/microsoft/url-rewrite Commented Dec 5, 2019 at 20:32
  • 1
    link in the answer is not valid anymore. The one provided by @Chris in comments worked for me.
    – Mariusz
    Commented Feb 8, 2021 at 12:54
  • 1
    I took the liberty to edit the answer to a correct link Commented Sep 25, 2021 at 6:00
68

Because it took me hours to find the problem, I am posting this solution to my own answer so it will save someone else this work.

In short you have to change the major version of the IIS via the registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\InetStp\MajorVersion to 9 during installation and then back to 10 afterwards.

Solution is from: https://forums.iis.net/t/1223556.aspx enter image description here

3
  • 1
    This does not change anything, but stackoverflow.com/a/38262403/2279059 works. Commented Oct 18, 2018 at 13:32
  • 3
    Sounds unwise to me. Safer to just install the 2.1 version for Windows 10. Commented Jun 17, 2019 at 3:51
  • i could not change the version no in registry. it show me error alert saying: "Cannot edit major version, Error writing the value's new content" Commented Dec 17, 2019 at 6:23
31

I found the downloads at the bottom for 2.1 work without any registry hacks: https://www.iis.net/downloads/microsoft/url-rewrite

I would prefer this as an option you can select from the roles, but who knows...

2
  • 3
    perfect, instead of changing version number
    – manny
    Commented Nov 28, 2017 at 11:43
  • 1
    This works for me. Thanks. Originally I thought it is in the control panel turn windows feature on and off, but it is not there. One needs to go to separate site to download it.
    – g5thomas
    Commented Dec 30, 2020 at 17:26
4

Issue: For me the link provide, failed to install URl Rewrite 2.1 on windows server 2016, IIS 10.0

Fix: Instead of this i have followed below steps which works perfectly.

3
  • the download link is broken, correct one (2.1) for newer IIS is iis.net/downloads/microsoft/url-rewrite - the 2.0 one doesn't install Commented Oct 30, 2020 at 11:49
  • @GeorgeBirbilis: This answerer explicitly said version 2.1 could not be installed for them. Maybe their environment is somewhat different from yours, where only version 2.1 works? Commented Mar 17, 2021 at 8:22
  • anyway their 2.0 link (at fix paragraph) doesn't download anymore. I had issue with installing 2.1 via platform installer, but the one I posted did work. There's a chance MS fixed something in that download (could be a newer build number with better metadata for the installation) since the original post Commented Mar 18, 2021 at 10:44
3

Additionally, entering your username and password in the "Specific user: " field found in Default Web Site --> Right click Virtual Database Folder --> Advanced settings --> Physical Path Credentials --> Specific user: helped me like in this link that helped me as well. The top answer after following these directions from this forum and the original forum provided in the hyperlink helped me get my local host directory to work.

1
  • 1
    The install instructions say to run msiexec /I rewrite_2.0_rtw_x64.msi from command prompt as administrator. For my system I had to run msiexec /I rewrite_amd64.msi as admin. microsoft.com/en-us/download/details.aspx?id=47337
    – voam
    Commented May 13, 2017 at 1:00
1

Link: Microsoft URL Rewrite Module 2.0 for IIS (x64)

After installing it you will notice a new icon in IIS for URL Rewrite: enter image description here

and you will be able to use rewrite tag in your web.config

1

In case, after installing IIS URL Rewrite 2.1, URL Rewrite option is still not visible at IIS Manager, check Jalpa Panchal's answer URL Rewrite not visible in IIS10.

1

Use Web Platform Installer in IIS.
Find for "URL Rewrite".
When installation window appears, in the bottom of it find the link "Options".
In "Change Options" window find "Which Web Server would you like to use?" and select the right version. In my case it's "IIS".
If you don't have such option and install it from the link https://www.iis.net/downloads/microsoft/url-rewrite
Then restart IIS service. In my case worked IISRESET command in CMD with Admin rights.
Works like a charm! IIS Screenshot. URL Rewrite installation.

-1

Anyone still struggling when trying to open the executable file. I had to open the CMD in the downloaded files location and run MSIExec /i rewrite_amd64_en-US.msi

Obviously using your appropriate file name

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.