Solved

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

Posted on 2011-09-21
2
2,888 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
[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
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

Get proactive database performance tuning online

At Percona’s web store you can order full Percona Database Performance Audit in minutes. Find out the health of your database, and how to improve it. Pay online with a credit card. Improve your database performance now!

Question has a verified solution.

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

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…
A procedure for exporting installed hotfix details of remote computers using powershell
This tutorial will give a an overview on how to deploy remote agents in Backup Exec 2012 to new servers. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as connecting to a remote Back…
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…
Suggested Courses

626 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