Copied to clipboard

Flag this post as spam?

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


  • Emil Schoelzer Schnohr 24 posts 144 karma points
    Aug 26, 2020 @ 10:03
    Emil Schoelzer Schnohr
    0

    Redirect all to external page except backoffice urls

    A client currently has an "under construction" page while they are making changes in the backoffice. However they have sort of a profile page on another website which they want visitors redirected to instead.

    So I am trying to make a 302 redirect rule of all urls except everything under /umbraco, so they can still access the backoffice. The redirect rule technically works, except it makes the backoffice login page blank white, with the console error:

    Uncaught ReferenceError: UmbClientMgr is not defined at Application?umb_rnd=fffffffa11a040bc:1 at finish (lazyload.js:108) at HTMLScriptElement.finish (lazyload.js:162)

    My redirect rule looks like this:

    <rule name="302 temp redirect to external website" stopProcessing="true">
          <match url="^((?!umbraco).)*$" />
          <action type="Redirect" url="another.site/client" redirectType="Found" />
        </rule>
    

    The login page works fine without this redirect rule. The site is running on Umbraco 7.3.6

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies