redirect the default website in IIS7 to a specific page

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.
ipswitchAsked:
Who is Participating?
 
ipswitchConnect With a Mentor Author Commented:
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
 
Tyler LaczkoCommented:
Just use code to do it.

in js

document.location = "loginpage.html";

in php

header("Location: loginpage.php");

etc
0
 
Tray896Commented:
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
 
ckiralCommented:
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
 
ipswitchAuthor Commented:
Revisiting the HTTP Redirect options ultimately got this to work for me
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.