2012-05-25 92 views
-1

我有一個網站hh-alrawi.com,問題是我每次發佈該網站的主頁(Index.aspx)都沒有出現,正確的網址是:http://www.hh-alrawi.com/index.aspx,所以我想知道我怎麼可以把主要的頁面名稱域名(Index.aspx的)後的URL後始終,我想修改我的Web配置,但它不工作,我的Web配置:使用Visual Studio發佈網站

<configuration> 
    <system.web> 

    <compilation debug="true" strict="false" explicit="true" targetFramework="4.0"/> 

    <globalization requestEncoding="utf-8" responseEncoding="utf-8"/> 

    <customErrors mode="On" defaultRedirect="Index.aspx"> 
     <error statusCode="404" redirect="Index.aspx" /> 
    </customErrors> 

    </system.web> 

    <system.webServer> 

    <defaultDocument enabled="true"> 
     <files> 
     <add value="Index.aspx" /> 
     </files> 
    </defaultDocument> 

    </system.webServer>  

</configuration> 

請檢查網站理解我說的:),Thnx爲你的時間

回答

0

發佈你的網站使用VS並將其保存到文件系統。我的託管hostgator可以選擇上傳zip文件,如果你也這樣做,那麼壓縮生成的文件並上傳在你的網站的根文件夾中生成的zip/rar或單獨上傳所有文件。告訴我,如果它解決了你的問題。

0

索引文件出現在任何地方,如果你把它放在你的www目錄下,它會在你訪問你的網站時自動顯示。

相關問題