programming4us
           
 
 
Windows

Windows 7 : Controlling and Customizing Your Website (part 2) - Setting the Website’s Default Document

- Windows 10 Product Activation Keys Free 2019
- How to active Windows 8 without product key
- Malwarebytes Premium 3.7.1 Serial Keys (LifeTime) 2019
3/23/2011 9:30:16 AM

Setting the Website’s Default Document

A normal website URL looks like the following:

http://name/folder/file

Here, name is a domain name or hostname, folder is a folder path, and file is the filename of the web page or other resource. Here’s an example:

http://localhost/photos/default.htm

Intriguingly, you can view the same web page by entering the following address into the browser:

http://localhost/photos/

This works because IIS defines default.htm as one of its default document filenames. Here are the others:

default.asp
index.htm
index.html
iisstart.htm
default.aspx

This means that as long as a folder contains a file that uses one of these names, you can view the corresponding page without specifying the filename in the URL.

Note, too, that these default documents have an assigned priority, with default.htm having the highest priority, followed by default.asp, then index.htm, then index.html, then iisstart.htm, and finally default.aspx. This priority defines the order in which IIS looks for and displays the default document pages. That is, IIS first looks for default.htm; if that file doesn’t exist in a folder, IIS next looks for default.asp, and so on.

For your own websites, you can add new default documents (for example, default.html and index.asp), remove existing default documents, and change the priority of the default documents. Here are the steps to follow:

1.
Open IIS Manager.

2.
Open the Computer, Sites branch (where Computer is the name of the computer running IIS).

3.
Select Default Web Site.

4.
Click Features View.

5.
Double-click the Default Document icon. IIS Manager displays the Default Document page, shown in Figure 2.

Figure 2. Use the Default Document page to add, remove, and reorder a site’s default content pages.

6.
To specify a new default document, click Add, type the filename in the Name text box, and then click OK.

7.
To change the default document priority order, select a default document and then use the Move Up and Move Down buttons to set the order.

8.
To delete a default document, select it and then click Remove.

9.
Click the Back button to return to the website’s main page in IIS Manager.
Other -----------------
- Windows 7 : Adding Folders and Files to the Default Website (part 3) - Adding a Folder to the Default Website
- Windows 7 : Adding Folders and Files to the Default Website (part 2) - Changing the Default Website Home Page
- Windows 7 : Adding Folders and Files to the Default Website (part 1) - Setting Permissions on the Default Website Folder
- Turning Windows 7 into a Web Server : Understanding the Default Website
- Turning Windows 7 into a Web Server : Accessing Your Website
- Windows 7 : Installing Internet Information Services
- Windows 7 : Using Virtual Private Network Connections
- Windows 7 : Using Dynamic DNS to Access Your Network & Configuring a Network Computer for Remote Administration
- Windows 7 : Connecting to a Remote Desktop via the Internet
- Windows 7 : Connecting to the Remote Desktop (part 2) - Making an Advanced Connection
- Windows 7 : Connecting to the Remote Desktop (part 1) - Making a Basic Connection
- Windows 7 : Setting Up the Remote Computer as a Host (part 2) - Configuring XP to Act as a Remote Desktop Host
- Windows 7 : Setting Up the Remote Computer as a Host (part 1) - Configuring Windows 7 or Vista to Act as a Remote Desktop Host
- Windows 7 : Working with Network Files Offline (part 6) - Dealing with Synchronization Conflicts
- Windows 7 : Working with Network Files Offline (part 5) - Synchronizing Your Offline Files
- Windows 7 : Working with Network Files Offline (part 4) - Working with Network Files While You’re Offline
- SOA with .NET and Windows Azure : WCF Discovery (part 3) - Discovery Proxies for Managed Discovery & Implicit Service Discovery
- SOA with .NET and Windows Azure : WCF Discovery (part 2) - Locating a Service Ad Hoc & Sending and Receiving Service Announcements
- SOA with .NET and Windows Azure : WCF Discovery (part 1) - Discovery Modes
- Windows 7 : Working with Network Files Offline (part 3) - Prohibiting a Network Folder from Being Made Available Offline & Encrypting Offline Files
 
 
 
Top 10
 
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 2) - Wireframes,Legends
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 1) - Swimlanes
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Formatting and sizing lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Adding shapes to lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Sizing containers
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 3) - The Other Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 2) - The Data Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 1) - The Format Properties of a Control
- Microsoft Access 2010 : Form Properties and Why Should You Use Them - Working with the Properties Window
- Microsoft Visio 2013 : Using the Organization Chart Wizard with new data
- First look: Apple Watch

- 3 Tips for Maintaining Your Cell Phone Battery (part 1)

- 3 Tips for Maintaining Your Cell Phone Battery (part 2)
programming4us programming4us
Video Tutorail Microsoft Access Microsoft Excel Microsoft OneNote Microsoft PowerPoint Microsoft Project Microsoft Visio Microsoft Word Active Directory Biztalk Exchange Server Microsoft LynC Server Microsoft Dynamic Sharepoint Sql Server Windows Server 2008 Windows Server 2012 Windows 7 Windows 8 Adobe Indesign Adobe Flash Professional Dreamweaver Adobe Illustrator Adobe After Effects Adobe Photoshop Adobe Fireworks Adobe Flash Catalyst Corel Painter X CorelDRAW X5 CorelDraw 10 QuarkXPress 8 windows Phone 7 windows Phone 8 BlackBerry Android Ipad Iphone iOS