homepage Welcome to WebmasterWorld Guest from 54.167.144.202
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Microsoft / Microsoft IIS Web Server and ASP.NET
Forum Library, Charter, Moderators: ocean10000

Microsoft IIS Web Server and ASP.NET Forum

    
301 IIS redirect loop problem
beavis

10+ Year Member



 
Msg#: 3709899 posted 2:35 am on Jul 29, 2008 (gmt 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?

 

beavis

10+ Year Member



 
Msg#: 3709899 posted 3:14 am on Jul 29, 2008 (gmt 0)

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

[experts-exchange.com...]

marcel

WebmasterWorld Senior Member 5+ Year Member



 
Msg#: 3709899 posted 2:19 pm on Jul 29, 2008 (gmt 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.

marcel

WebmasterWorld Senior Member 5+ Year Member



 
Msg#: 3709899 posted 2:34 pm on Jul 29, 2008 (gmt 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.

bwnbwn

WebmasterWorld Senior Member bwnbwn us a WebmasterWorld Top Contributor of All Time 5+ Year Member



 
Msg#: 3709899 posted 5:56 pm on Jul 29, 2008 (gmt 0)

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

beavis

10+ Year Member



 
Msg#: 3709899 posted 4:16 am on Jul 30, 2008 (gmt 0)

Thanks for the ideas. I sent this link to the tech support guru at my host. Hopefully, I can report success soon!

bwnbwn

WebmasterWorld Senior Member bwnbwn us a WebmasterWorld Top Contributor of All Time 5+ Year Member



 
Msg#: 3709899 posted 7:44 pm on Jul 30, 2008 (gmt 0)

beavis
After the host said it is done go here
[webmasterworld.com...] and check to make sure the redirect throws a 301

beavis

10+ Year Member



 
Msg#: 3709899 posted 12:20 am on Aug 1, 2008 (gmt 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?

bwnbwn

WebmasterWorld Senior Member bwnbwn us a WebmasterWorld Top Contributor of All Time 5+ Year Member



 
Msg#: 3709899 posted 12:57 pm on Aug 1, 2008 (gmt 0)

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?
Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Microsoft / Microsoft IIS Web Server and ASP.NET
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved