问题描述
我在 IIS 中托管了一个站点,但每当我浏览到该站点时,我都会得到 404.4.我该如何解决这个问题?我已经提到了几篇文章,他们都说问题是关于静态文件的,但它已经被映射了.我还能做什么?这是我的 iis 7.0 中处理程序映射的附件图片
I've hosted a site in IIS but whenever I browse to the site I get 404.4. How can I solve this? I've referred several posts and they all say the issue is about staticfile but it is already mapped. What more can I do? Here is the attached picture of handler mappings in my iis 7.0
有什么想法吗?
我已经设置了这个 url 重写器:
I have this url rewriter set up:
<rules>
<rule name="Imported Rule 1-1" enabled="true" stopProcessing="true">
<match url="^(.*)$" ignoreCase="false" />
<conditions logicalGrouping="MatchAll">
<add input="{SERVER_PORT}" pattern="80" />
</conditions>
<action type="Rewrite" url="https://abc.com/{R:1}" />
</rule>
当我禁用此规则时,http://请求得到正确处理.但是当我启用它时,我得到了这个错误.
When I disable this rule the http:// request is correctly handled. But when I enable it, I get this error.
又一次更新:
如果我替换这个:
<action type="Rewrite" url="https://abc.com/{R:1}" />
与
<action type="Redirect" url="https://abc.com/{R:1}" />
一切都很顺利.
推荐答案
我遇到了完全相同的问题.我安装了应用程序请求路由组件,然后启用代理并选择使用 URL 重写来检查输入重定向 URL 别名的传入请求,我的工作
I was having the exact same issue. I installed Application Request Routing component and then set the Proxy enabled and selected the Use URL Rewrite to inspect incoming requests entered the redirect url alias and mine worked
这篇关于HTTP 错误 404.4 - 未找到您要查找的资源没有与之关联的处理程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!