If you want to make your website's default file you can do this by using Windows hosting accounts running IIS 7, hence you only have to specify your website's default file using a web.config file.
To change your website's default file, include the following code in your web.config file:
<configuration>
<system.webServer>
<defaultDocument enabled="true">
<files>
<add value="home.aspx" />
</files>
</defaultDocument>
</system.webServer>
</configuration>
Note: here home.aspx is the name of the file you want to use.
0 Comment(s)