2013-06-13 39 views
0

我得到404錯誤,當我運行http://www.judsonsmartliving.org/jordan404 - 找不到文件或目錄。在umbraco

如果我使用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錯誤。

+0

是否已經設置了'UseExtensionlessUrls'設置爲true? –

+0

嗨格蘭特在哪裏設置UseExtensionlessUrls = true – rahul

回答

0

您可以使用webconfig一個默認的導航頁面的設置,如下面

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

編號:Set Default Page in Asp.net

相關問題