Boas Enkler
Boas Enkler

Reputation: 12557

Url rewrite does not install on windows 10 IIS 10

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

Upvotes: 64

Views: 132789

Answers (9)

David Harlow
David Harlow

Reputation: 2863

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

Upvotes: -1

Pelister
Pelister

Reputation: 1135

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

Upvotes: 109

user3828374
user3828374

Reputation: 109

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.

Upvotes: 1

Julio Nobre
Julio Nobre

Reputation: 4395

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.

Upvotes: 1

Raghav
Raghav

Reputation: 9630

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

Upvotes: 1

hpsanampudi
hpsanampudi

Reputation: 679

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.

Upvotes: 4

Luke Duddridge
Luke Duddridge

Reputation: 4347

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

Upvotes: 31

Boas Enkler
Boas Enkler

Reputation: 12557

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

Upvotes: 68

user3553260
user3553260

Reputation: 721

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.

Upvotes: 3

Related Questions