简体   繁体   English

使用IIS 7上传到服务器时,URLRewriter.net发送404,但可在localhost上运行

[英]URLRewriter.net sends 404 when uploaded to server with IIS 7, but works on localhost

I have "installed" URLRewriter.net to my website, and it works just fine when I run it from Visual Studio, but as soon as I upload it, I get a 404. 我已经将“ URLRewriter.net”安装到我的网站上,并且当我从Visual Studio中运行它时,效果很好,但是一旦上载,我就会得到一个404。

Example: http://dkbyg.strandweb.dk/FAQ 示例: http//dkbyg.strandweb.dk/FAQ

Application Pool has been changed to "integrated", because my host suggested that could be it. 应用程序池已更改为“集成”,因为我的主持人建议可以做到这一点。 It didn't work though. 虽然没有用。

Any ideas? 有任何想法吗?

I found the reason. 我找到了原因。 I had to set the web.config as described in the section "Approach 3: Using an HttpModule to Perform Extension-Less URL Rewriting with IIS7" in this article: http://weblogs.asp.net/scottgu/archive/2007/02/26/tip-trick-url-rewriting-with-asp-net.aspx 我必须按照本文中的“方法3:使用HttpModule使用IIS7执行扩展名减少的URL重写”部分中的说明设置web.config: http : //weblogs.asp.net/scottgu/archive/2007/ 02/26 / tip-trick-url-rewrite-with-asp-net.aspx

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

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