Solved

redirect the default website in IIS7 to a specific page

Posted on 2010-11-16
5
1,248 Views
Last Modified: 2012-05-10
I'm trying to redirect the default website to a specific login page so that whenever someone types in the url, IIS will redirect the request to the login page.  How does one accomplish this in IIS7?  I have tried the HTTP Redirect thing with absolutely no luck.  I just keep getting the green IIS7 default page.
0
Comment
Question by:ipswitch
5 Comments
 
LVL 10

Expert Comment

by:Tyler Laczko
Comment Utility
Just use code to do it.

in js

document.location = "loginpage.html";

in php

header("Location: loginpage.php");

etc
0
 
LVL 15

Expert Comment

by:Tray896
Comment Utility
It sounds to me that you're just trying to set your login page as the default page, not create a redirect.

To do this, simply click on your website in IIS and then open the Default Document feature.  Click on Add, and then type in the name of your login page (for example: login.asp).  After that, click on the page you just added and choose Move Up until the login page is at the top of the list.

More information can be found here:
http://technet.microsoft.com/en-us/library/cc771439(WS.10).aspx
0
 
LVL 2

Expert Comment

by:ckiral
Comment Utility
If the login page is on your document root you can accomplish this by configuring default page in iis 7.
If it will solve your problem, try this link.
http://learn.iis.net/page.aspx/203/default-documents/
I hope it will help.
0
 

Accepted Solution

by:
ipswitch earned 0 total points
Comment Utility
This ended up getting solved by the built-in IIS HTTP redirect.  I had to select the check box to only redirect requests to content in this directory option for the redirect to work properly.
0
 

Author Closing Comment

by:ipswitch
Comment Utility
Revisiting the HTTP Redirect options ultimately got this to work for me
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Logparser is the smartest tool I have ever used in parsing IIS log files and there are many interesting things I wanted to share with everyone one of the  real-world  scenario from my current project. Let's get started with  scenario - How do w…
Running classic asp applications under Windows Server 2008 R2 (x64) and IIS 7 is not as easy as one may think. It took me a while to figure it out while getting error 8002801d a few times. After you install the OS you will need to install the fol…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now