Solved

IIS 7 "HTTP redirect" The page isn't redirecting properly

Posted on 2011-09-21
2
2,277 Views
Last Modified: 2012-05-12
  We have Windows 2008 server and we tried to use the HTTPredirect on IIS and we have this error:
 The page isn't redirecting properly when we have for an example a doman:
www.domain.com
and we want each time the user use www.doman.com then redirect automatic to www.domain.com/test
Then on IIS on the web site www.doman.com on features we clicked twice on HTTP Redirect request, then on redirect requests to the destination the empty box we put: http://www.domain.com/test
Then checked redirect all request to exact destination and then 301 permanent
But when we browse www.doman.xom give the errror at the top.
Any suggestion?
Thank you
0
Comment
Question by:coerrace
2 Comments
 
LVL 28

Accepted Solution

by:
strickdd earned 500 total points
ID: 36580988
This is a problem with an infinite redirect. Since you are redirecting www.domain.com to (essentially) www.domain.com, it will keep redirecting until the browser displays this error.

You need to update your rules to account for this and make sure it is only the root level (no subfolders) that redirects.

The other option would be to add a simple ASP page that does a Response.Redirect("/test")
0
 

Author Closing Comment

by:coerrace
ID: 36581146
I solved doing this like you said on an index.asp on VB:
thispage = Request.ServerVariables("SERVER_NAME")
if thispage = "www.domain.com" then response.redirect("http://www.domain.com/test/") end if

Thank you
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
OfficeMate Freezes on login or does not load after login credentials are input.
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
This tutorial will show how to configure a single USB drive with a separate folder for each day of the week. This will allow each of the backups to be kept separate preventing the previous day’s backup from being overwritten. The USB drive must be s…

757 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now