更改默认启动页面Asp.net窗口托管GoDaddy的 [英] change default startup page Asp.net windows hosted godaddy
问题描述
当我访问 http://mywebsiteurl.com/ 默认情况下它会加载Default.aspx的,index.html的或welcome.html ......我想知道我可以做一个目录点index.ashx(或别的东西,然后其他的index.html)是它的web.config文件里面?
when I visit http://mywebsiteurl.com/ by default it will load Default.aspx, index.html, or welcome.html... I would like to know how I can make a directory point to index.ashx (or something else other then index.html) is it inside the web.config file?
推荐答案
如果是IIS7,您可以添加以下到你的web.config:
If it's IIS7, you can add the following to your web.config:
<configuration>
<system.webServer>
<defaultDocument>
<files>
<add value="index.aspx"/>
</files>
</defaultDocument>
</system.webServer>
</configuration>
更多关于该<一href="http://blogs.iis.net/bills/archive/2008/03/22/how-to-add-a-default-document-with-iis7-web-config.aspx"相对=nofollow>此处。如果它是一个previous版本,你需要访问IIS管理器来做到这一点。 <一href="http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/dc6eb1b4-9028-4308-9935-52b64edfad36.mspx?mfr=true"相对=nofollow>下面是如何。
More on that here. If it's a previous version, you need access to IIS Manager to do it. Here's how.
这篇关于更改默认启动页面Asp.net窗口托管GoDaddy的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!