We have a load balanced installation and admin users access Umbraco on a different domain to the public site. The admin domain is being indexed by Google so I want to stop this by redirecting all non-Umbraco requests to www but still allow admin access to Umbraco. I have the following 2 rules but they are causing a redirect loop. Is it possible to ignore the 2nd rule if the 1st has been activated?
URLRewriting on Load balanced site
Hi
We have a load balanced installation and admin users access Umbraco on a different domain to the public site. The admin domain is being indexed by Google so I want to stop this by redirecting all non-Umbraco requests to www but still allow admin access to Umbraco. I have the following 2 rules but they are causing a redirect loop. Is it possible to ignore the 2nd rule if the 1st has been activated?
<add name="Admin" virtualUrl="^http://www.domain.org.uk/umbraco/(.*)"
rewriteUrlParameter="ExcludeFromClientQueryString"
destinationUrl="http://admin.domain.org.uk/umbraco/$1"
redirect="Domain"
redirectMode="Permanent"
ignoreCase="true" />
<add name="Admin2" virtualUrl="^http://admin.domain.org.uk/(.*)"
rewriteUrlParameter="ExcludeFromClientQueryString"
destinationUrl="http://www.domain.org.uk/$1"
redirect="Domain"
redirectMode="Permanent"
ignoreCase="true" />
is working on a reply...