IIS UrlRewrite不适用于IIS 8

问题描述:

我刚刚将我的网站移到了使用IIS 7.5的使用IIS 8的新计算机上.除了URL重写之外,其他所有程序都运行良好.没有比我得到的"HTTP Error 404.0 - Not Found"错误消息.我唯一认识到的是,在网站">模块设置"页面中有一个类似于RewriteModule (%SystemRoot%\system32\inetsrv\rewrite.dll)的条目,但是IIS 8没有相同的模块.即使我向IIS 8添加了相同的模块,也无法正常工作.如果能对解决问题提出一些建议,我会很高兴.可根据要求提供更多信息.

I have just moved my website to new computer which uses IIS 8 from one has IIS 7.5. All but URL rewriting is working well. there is no error message than "HTTP Error 404.0 - Not Found" which I got. What I've only recognized is, there is an entry like RewriteModule (%SystemRoot%\system32\inetsrv\rewrite.dll) in website>modules setting page but, IIS 8 one has no same module. Even though I added same module to IIS 8, It didn't work. I'll be glad if I can have some suggestion about how to solve the problem. More info could be provided upon request..

希望我能正确表达我的意思!!

Hope I could expressed what i mean properly.!

预先感谢

警报

ps:网址规则很好用..

ps: url rules work well..

首先,您需要检查重写url是否工作正常,请遵循以下示例教程:

first of all you have to check if rewrite url works well, follow this sample tutorial:

http://www.iis.net/learn/extensions/url-rewrite-module/using-failed-request-tracing-to-trace-rewrite-rules

如果没有,请打开IIS8并检查是否显示了URL重写图标.如果不是,请从此处下载msi:

If not, open IIS8 and check if URL rewrite icon is showing. If not download msi from here:

http://www.iis.net/downloads/microsoft/url-rewrite

并重新安装模块.现在,您可以在根节点(服务器节点)以及网站和Web应用程序节点上的IIS管理器中看到URL重写模块.

and reinstall the module. Now you could see the URL Rewrite module in IIS manager while on the root node (Server node) as well as on website and web application nodes.

希望有帮助!