Setting Default Page for WebApplication through Web.Config

Setting Default Document through Web.config :

Web.config can be used to change the default document (page) for an entire site, or on a directory by directory basis.

The default page may be a .php, .asp, .htm, .aspx, .cfm, or any other file type handled by the web server.

Web.config defaultDocument

The web.config file can be used to set a default document, or list of default documents for your website.
Web.config can be used to change the default document (page) for an entire site, or on a directory by directory basis.

The default page may be a .php, .asp, .htm, .aspx, .cfm, or any other file type handled by the web server.

<system.webServer>
        <defaultDocument>
            <files>
                 <clear />  
                <add value=”Login.aspx” />
                <add value=”LoginIndia.aspx/>         <!– 2nd default document in search order –>                
                <add value=”LoginTrinidad.cfm/>   <!– 3rd default document in search order –>
            </files>
        </defaultDocument> 
</system.webServer>

Advertisements