How to Set the Default Page of the Website

There are two ways to Set the default page of the website In IIS 7.0

1. Directly on the IIS 7.0 Manager

  1. 1. Open IIS Manager
  2. 2. Select your web site directory
  3. 3. Make sure Feature View is selected
  4. 4. On center page, under HTTP Feature select Default Document
  5. 5. Type the Default Page you want.

2. By using Web.Config file, just add to following line to your web.config file

  1. <configuration>
  2.    <system.webServer>
  3.     <defaultDocument>
  4.         <files>
  5.             <add value="index.php" />
  6.         </files>
  7.     </defaultDocument>
  8.    </system.webServer>
  9. </configuration>

Other Resources:
NetOMatrix | IIS Net

,

  1. No comments yet.
(will not be published)
Submit Comment

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word

Subscribe to comments feed
  1. No trackbacks yet.

SetPageWidth