我有default.aspx和index.html。我将两者都上传到服务器,但我希望我的第一页以index.html 开头。我应该怎么办?
如果您无权访问 IIS,并且托管在 IIS 7 (Windows Server 2008) 上,您可能需要将其放入您的web.config
file:
<system.webServer>
<defaultDocument>
<files>
<clear / >
<add value="index.html" />
</files>
</defaultDocument>
</system.webServer>
Source: 如何使用 IIS7 web.config 添加默认文档 http://blogs.iis.net/bills/archive/2008/03/22/how-to-add-a-default-document-with-iis7-web-config.aspx
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)