Link to home
Start Free TrialLog in
Avatar of ipswitch
ipswitch

asked on

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.
Avatar of Tyler Laczko
Tyler Laczko
Flag of Canada image

Just use code to do it.

in js

document.location = "loginpage.html";

in php

header("Location: loginpage.php");

etc
Avatar of Tray896
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
Avatar of ckiral
ckiral

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.
ASKER CERTIFIED SOLUTION
Avatar of ipswitch
ipswitch

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ipswitch

ASKER

Revisiting the HTTP Redirect options ultimately got this to work for me