【发布时间】:2012-06-14 15:34:16
【问题描述】:
我正在使用 Umbraco 4.7,而我的服务器是 IIS7,我想知道什么不适合我。我基本上想制作一个自定义错误页面(404)并且我尝试过的一切都不起作用,检查了论坛,但它仍然显示同样的问题。
我已经编辑了我的 umbracoSettings.config
<errors>
<!-- the id of the page that should be shown if the page is not found -->
<!-- <errorPage culture="default">1647</errorPage> -->
<!-- <errorPage culture="en-US">1647</errorPage> -->
<error404>1647</error404>
</errors>
我也考虑过将其添加到 web.config 文件中。
<httpErrors errorMode="Custom" existingResponse="Replace">
<remove statusCode="404" subStatusCode="-1" />
<error statusCode="404" prefixLanguageFilePath="" path="/error.aspx" responseMode="ExecuteURL" />
</httpErrors>
任何帮助将不胜感激。我是 IIS 和任何涉及网络设置的新手。
【问题讨论】:
-
设法解决这个问题,转到 IIS > 站点 > 我的网站 > 错误页面 > 404 > 编辑功能设置 > 将本地请求更改为详细错误。它奏效了。
标签: redirect http-status-code-404 umbraco