404 - 找不到文件或目录。在umbraco

时间:2013-06-13 09:37:51

标签: c# asp.net web-config umbraco umbraco5

我运行http://www.judsonsmartliving.org/jordan时遇到404错误。

如果我使用http://www.judsonsmartliving.org/jordan/index.html,那么它的工作。

我找到了一些方法来解决这个问题,但它们并不适用于我。

我在webconfig中尝试了一些解决方案:

  1)<httpErrors existingResponse="PassThrough" />
  2)<location path="Site Description">
  <system.webServer>
  <httpErrors existingResponse="PassThrough" />
  </system.webServer>
  </location>

但是在webconfig中添加这些解决方案后,我遇到了505错误。

1 个答案:

答案 0 :(得分:0)

您可以在网络配置中使用默认导航页面设置,如下所示

<system.webServer>
  <defaultDocument>
    <files>
      <clear />
      <add value="CreateThing.aspx" />
    </files>
  </defaultDocument>
</system.webServer>

参考:Set Default Page in Asp.net