Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Dan Evans 631 posts 1018 karma points
    Feb 13, 2015 @ 14:32
    Dan Evans
    0

    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" />

Please Sign in or register to post replies

Write your reply to:

Draft