Solved

redirect the default website in IIS7 to a specific page

Posted on 2010-11-16
5
1,256 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

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…
Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

696 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