Url 重写不会安装在 Windows 10 IIS 10 上

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/35319942/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-08 19:28:05  来源:igfitidea点击:

Url rewrite does not install on windows 10 IIS 10

windowsiisurl-rewritingiis-10

提问by Boas Enkler

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

我的 IIS 上需要 Url Rewrite 模块但它没有安装并说我至少需要 IIS7

回答by Pelister

the newer version supports win10 out of the box: https://www.microsoft.com/en-us/download/details.aspx?id=47337

较新的版本支持开箱即用的 win10:https: //www.microsoft.com/en-us/download/details.aspx?id=47337

回答by Boas Enkler

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\MajorVersionto 9 during installation and then back to 10 afterwards.

简而言之,您必须HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\InetStp\MajorVersion在安装期间通过注册表项将 IIS 的主要版本更改为 9,然后再回到 10。

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

解决方案来自:https: //forums.iis.net/t/1223556.aspx在此处输入图片说明

回答by Luke Duddridge

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

我在底部找到了 2.1 工作的下载,没有任何注册表黑客:https: //www.iis.net/downloads/microsoft/url-rewrite

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

我更喜欢将其作为您可以从角色中进行选择的选项,但谁知道...

回答by user3553260

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 linkthat 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 directoryto work.

此外,在默认网站中的“特定用户:”字段中输入您的用户名和密码--> 右键单击​​虚拟数据库文件夹--> 高级设置--> 物理路径凭据-->特定用户:帮助我喜欢这个链接也对我有帮助。按照这个论坛和超链接中提供的原始论坛的这些指示后的最佳答案帮助我让我的本地主机目录工作。

回答by Raghav

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

链接: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

安装后,您会注意到 IIS 中有一个用于 URL 重写的新图标: 在此处输入图片说明

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

你将能够在你的 web.config 中使用rewrite标签

回答by hpsanampudi

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

问题:对我而言,链接提供,无法在 Windows Server 2016、IIS 10.0 上安装 URl Rewrite 2.1

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

修复:而不是这个,我遵循了以下完美工作的步骤。