Welcome to WebmasterWorld Guest from 54.163.25.166

Forum Moderators: ocean10000

Message Too Old, No Replies

301 IIS redirect loop problem

     
2:35 am on Jul 29, 2008 (gmt 0)

Junior Member

10+ Year Member

joined:Aug 24, 2003
posts:119
votes: 0


I have recently asked my host to set up a 301 redirect on my shared windows hosting account so that all requests for [mydomain.com...] will permanently redirect to [mydomain.com...] as per this link:

[xoc.net...]

At one point the redirect was set up and working perfectly, but we had to turn it off briefly so that I could do some work on the site. Now that we are trying to set it up again we are having the problem that an infinite redirect loop keeps being created and my tech support person does not know why, as he believes he is following the above exactly.

Without further information, do any of you IIS experts have any ideas what he may be doing wrong or if there is something else that could be going on with the server to cause this problem?

3:14 am on July 29, 2008 (gmt 0)

Junior Member

10+ Year Member

joined:Aug 24, 2003
posts:119
votes: 0


This page has a similar discussion, but I am not a member of this site...

[experts-exchange.com...]

2:19 pm on July 29, 2008 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Feb 1, 2005
posts:732
votes: 0


I would double check both the IIS websites to make sure there are no duplicate entries, there should be two:

- One with *only* the host header website.com

- One with *only* the host header www.website.com

Make sure that the www.website.com version is *not* doing a redirect.

2:34 pm on July 29, 2008 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Feb 1, 2005
posts:732
votes: 0


Also, you might find that IIS has problems in virtual environments when both sites point to the same physical location on the disk.

Try pointing the non www version to a different folder, and then set the redirect.

5:56 pm on July 29, 2008 (gmt 0)

Senior Member

WebmasterWorld Senior Member bwnbwn is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Oct 25, 2005
posts:3492
votes: 3


At one point the redirect was set up and working perfectly, but we had to turn it off briefly so that I could do some work on the site.

this right here tells me it wasn't set up correctly as why would you have to shut it off, no i think it is set up wrong from the beginning.

if you have access to the servers IIS and I am assuming you do
1-Go into IIS
2 double click websites
3-select the folder u want to redirect
4-right click select properites
5-select advanced
6- take out the non www to keep the www working while you do the below
7-then select add new website
8-add the website in the non www version example.com
9-no need to go through the whole process of pointing it at the correct folder you are redirecting this one anyway just select d/drive here
10-after the new website is built double click the one you just added to the server
11-select home directory
12 select redirect to url add the www.mydomain.com here
13 select permanent redirect
14 select apply
15 close and check

4:16 am on July 30, 2008 (gmt 0)

Junior Member

10+ Year Member

joined:Aug 24, 2003
posts:119
votes: 0


Thanks for the ideas. I sent this link to the tech support guru at my host. Hopefully, I can report success soon!
7:44 pm on July 30, 2008 (gmt 0)

Senior Member

WebmasterWorld Senior Member bwnbwn is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Oct 25, 2005
posts:3492
votes: 3


beavis
After the host said it is done go here
[webmasterworld.com...] and check to make sure the redirect throws a 301
12:20 am on Aug 1, 2008 (gmt 0)

Junior Member

10+ Year Member

joined:Aug 24, 2003
posts:119
votes: 0


Unfortunately, the response from my host was:

"If itís true in case of needing to point the two addresses to different locations, I can not accommodate that in the shared environment. This may be more attainable on a dedicated server. Would this be a possibility?"

Any suggestions?

12:57 pm on Aug 1, 2008 (gmt 0)

Senior Member

WebmasterWorld Senior Member bwnbwn is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Oct 25, 2005
posts:3492
votes: 3


I have recently asked my host to set up a 301 redirect on my shared windows hosting account
How did they set it up the first time?