简体   繁体   English

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

[英]Url rewrite does not install on windows 10 IIS 10

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

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

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

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

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...我更喜欢将其作为您可以从角色中进行选择的选项,但谁知道...

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.按照这个论坛和超链接中提供的原始论坛的这些指示后的最佳答案帮助我让我的本地主机目录工作。

Issue: For me the link provide, 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.修复:而不是这个,我遵循了以下完美工作的步骤。

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

and you will be able to use rewrite tag in your web.config你将能够在你的 web.config 中使用rewrite标签

如果在安装IIS URL Rewrite 2.1 后URL Rewrite选项在IIS Manager 中仍然不可见,请检查 Jalpa Panchal 的回答URL Rewrite not visible in IIS10

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM