I deployed my web application to IIS7 and everything works just fine. However, instead of typing the url of my true starting page, I want it to automatically go to www.xxxxxx.com/views/root/default.aspx.
How do I do this?
In the Home pane, double-click Default Document. In the Add Default Document dialog box, type the name of the default document that you want to add in the Name box, and then click OK.
The Default Web Site is simply the first, and most common, "site" on your IIS server. It is true you can place sites beneath your "Default Web Site" but these are actually nested "applications". Sites are mapped to a specific folder, and generally applications are mapped to specific nested subfolders.
Just go to web.config file and add following
<system.webServer> <defaultDocument> <files> <clear /> <add value="Path of your Page" /> </files> </defaultDocument> </system.webServer>
Karan has posted the answer but that didn't work for me. So, I am posting what worked for me. If that didn't work then user can try this
<configuration>
<system.webServer>
<defaultDocument enabled="true">
<files>
<add value="myFile.aspx" />
</files>
</defaultDocument>
</system.webServer>
</configuration>
On IIS Manager--> Http view--> double click on Default and write the name of your desired startup page, Thats it
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With