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.
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
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
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.
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Revisiting the HTTP Redirect options ultimately got this to work for me
in js
document.location = "loginpage.html";
in php
header("Location: loginpage.php");
etc