Microsoft Knowledge Base Article
This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved.
Terms
of Use |
Trademarks
Article ID: 937691 - Last Review: June 15, 2007 - Revision: 1.1
How to redirect all requests for a Web site to a page that exists within the Web site in IIS 6.0
When you configure site level redirection for a Web site in Internet Information Services 6.0, all client requests for resources in the Web site are redirected to another resource. However, if you redirect incoming client requests for a Web site to a page that exists within the Web site, you may experience unexpected issues. For example, if you configure IIS to redirect client requests to a page that is named Redirect.html, IIS may redirect your requests in an endless loop when you request the Redirect.html page. This article describes how to correctly redirect all requests for a Web site to a page that exists within the Web site.
To redirect all requests for resources in a Web site to a page that exists within that Web site, follow these steps:
- Configure the HTTPRedirect property for the Web site. To configure the HTTPRedirect property for the Web site, follow these steps:
- Click Start, click Run, type Inetmgr.exe, and then click OK.
- Expand the server that you want, and then expand Web Sites.
- Right-click Default Web Site, and then click Properties.
- On the Home Directory tab, click A redirection to a URL.
- In the Redirect to box, type the URL for the Redirect.html page.
- Select the The exact URL entered above check box, click Apply, and then click OK.
- Override the HTTPRedirect property for the Redirect.html page. To override the HTTPRedirect property for the Redirect.html page, follow these steps:
Note You must be running Microsoft Windows Server 2003 with Service Pack 1 (SP1) to follow these steps. In earlier versions of Windows Server 2003, you must programmatically override the HTTPRedirect property when you use a wildcard character.- In IIS Manager, right-click Redirect.html, and then click Properties.
- On the File tab, delete the URL for the Redirect.html page.
- On the File tab, type *;! in the Redirect to box.
- Click Apply, and then click OK.
For more information about the
HTTPRedirect property, visit the following Microsoft MSDN Web site:
For more information about how to configure IIS Manager to accept wildcard characters when you redirect incoming client requests, click the following article number to view the article in the Microsoft Knowledge Base:
838369Â
(http://kbalertz.com/Feedback.aspx?kbNumber=838369/
)
BUG: You cannot use an asterisk ("*") character to configure a redirection to a URL with Internet Information Services (IIS) Manager in Internet Information Services 6.0
APPLIES TO
- Microsoft Internet Information Services 6.0
- Microsoft Windows Server 2003 Service Pack 1
| kbhowto kbinfo kbprb KB937691 |
Community Feedback System
Very often, it takes hours to solve a problem. Very often, you've looked high
and low, and have tried a lot of solutions. When you finally found it, chances
are, it was because someone else helped you. Here's your chance to give back.
Use our community feedback tool to let others know what worked for you and what
didn't.
Please also understand that the community feedback system is not warranted to be
correct, it's simply a system that we've built to let people try and help each
other. If something in a feedback response doesn't make sense to you, or you're
not comfortable making changes that the feedback talks about (like registry
edits), please consult a professional.
Thank you for using kbAlertz.com Feedback System.
-- Scott Cate