i have default.aspx and index.html. I uploaded both to the server, but i want my first page start with index.html. What should I do?
5 Answers
If you do not have access to IIS, and you are hosted on IIS 7 (Windows Server 2008), you may want to put this into your web.config file:
<system.webServer>
<defaultDocument>
<files>
<clear / >
<add value="index.html" />
</files>
</defaultDocument>
</system.webServer>
1 Comment
JamesQMurphy
This is the correct solution, but watch out if you copy and paste it. There's a space between the
/ and the > in the <clear/> tag. Since it's less than a six-character fix, I can't edit it.You need to configure it in the properties of the virtual directory hosting the ASP.NET application. Put index.html before default.aspx

(source: plus2net.com)