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

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s