Url rewrite does not install on windows 10 IIS 10

WindowsIisUrl RewritingIis 10

Windows Problem Overview


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

Windows Solutions


Solution 1 - Windows

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

Solution 2 - Windows

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

Solution 3 - Windows

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...

Solution 4 - Windows

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.

Solution 5 - Windows

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.

Solution 6 - Windows

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

Solution 7 - Windows

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.

Solution 8 - Windows

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.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionBoas EnklerView Question on Stackoverflow
Solution 1 - WindowsPelisterView Answer on Stackoverflow
Solution 2 - WindowsBoas EnklerView Answer on Stackoverflow
Solution 3 - WindowsLuke DuddridgeView Answer on Stackoverflow
Solution 4 - Windowsuser3553260View Answer on Stackoverflow
Solution 5 - WindowshpsanampudiView Answer on Stackoverflow
Solution 6 - WindowsRaghavView Answer on Stackoverflow
Solution 7 - Windowsuser3828374View Answer on Stackoverflow
Solution 8 - WindowsJulio NobreView Answer on Stackoverflow