我将我的web应用程序部署到IIS7上,一切都很正常。但是,我希望它自动转到www.xxxxxx.com/views/root/default.aspx,而不是输入我真正的起始页面的url。
我该怎么做呢?
发布于 2012-05-16 01:18:40
只需转到web.config文件并添加以下内容
<system.webServer>
<defaultDocument>
<files>
<clear />
<add value="Path of your Page" />
</files>
</defaultDocument>
</system.webServer>发布于 2014-06-09 23:31:30
发布于 2015-02-17 20:18:11
Karan已经发布了答案,但这对我来说不起作用。所以,我把对我有用的东西贴出来。如果不起作用,那么用户可以尝试这样做
<configuration>
<system.webServer>
<defaultDocument enabled="true">
<files>
<add value="myFile.aspx" />
</files>
</defaultDocument>
</system.webServer>
</configuration> https://stackoverflow.com/questions/4208381
复制相似问题