Solved

redirect the default website in IIS7 to a specific page

Posted on 2010-11-16
5
1,250 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
ID: 34146267
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
ID: 34146715
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
ID: 34146771
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
ID: 34191924
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
ID: 34221288
Revisiting the HTTP Redirect options ultimately got this to work for me
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Prologue It is often required to host multiple websites on a single instance of IIS, mostly in development environments instead of on production servers. I am sure it is not much a preferred solution on production servers but this is at least a pos…
If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

803 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