Multiple 301 redirect in IIS7 in a cluster?

Discussion in 'Site & Server Administration' started by amaze, Nov 7, 2010.

  1. #1
    Currently we have 302 redirects setup on the LB for www.domain.co.uk to www.domain.com/uk/pages/home

    We want these to be 301 redirects. So they need to be implmented via IIS. We have the IIS redirect module installed. In fact it is already being used to do 301 redirects such as www.domain.co.uk/whatever to www.domain.com/uk/whatever. It's just the root folder (www.domain.co.uk) that is done as a 302 on the LB.

    When we setup what we believe to be the 301 redirects required on IIS for www.domain.co.uk, and THEN remove the www.domain.co.uk redirect on the LB, we get 'unexpected' behaviour as below. So we have now put back the 302 LB redirect until we can resolve this.


    When the above were removed, the redirects setup on the servers (IIS) should then kick in. They did (I used fiddler) and saw that I now got a 301 redirect. However, the redirect was to http://www.domain.com/uk/ which is incorrect. It results in a 404 error. I expected it to redirect to http://www.domain.com/uk/pages/home which is what I have setup using the IIS redirect module. This is on servers .210 and .211. Note that although we have 4 web server for .com, we only have .210 and .211 balanced for .co.uk.

    Any help would be appreciated. :)
     
    amaze, Nov 7, 2010 IP