IIS Web.config file redirect rules stops working after adding more than 3 rules

462 Views Asked by At

Hoping someone can help, I have a redesigned a site recently and need to redirect some URL's. I find it easier doing this in the Web.config file in IIS and have the current rules setup. Any more rules after this will break all the redirects and I get errors that the site is being redirected to many times. I have set it so that the stopPorcessing is true so it shouldn't try and redirect more than it is asked to?

<rule name="New About us Redirect" stopProcessing="true"><match url="^(about-us.*)" /><action type="Redirect" url="http://www.mysite.co.uk/about.html" /></rule>

<rule name="New Rule meet-the-team" stopProcessing="TRUE"> <match url= "^(meet-the-team.*)"/> <action type="Redirect" url="http://www.mysite.co.uk.co.uk/team.html" /> </rule>

<rule name="New Rule it-solutions" stopProcessing="TRUE"> <match url= "^(solutions.*)"/> <action type="Redirect" url="http://www.mysite.co.uk/services.html" /> </rule>

Any help would be much appreciated.

0

There are 0 best solutions below