I am trying the sxa default redirect url but it is not working for my site. Steps followed : /sitecore/content/Tenant/Site/Settings/Redirects/TestRedirect

enter image description here

It is not redirecting me to the link i provided. Instead its opening the same URL which i am requesting.

Please help me resolve the issue.

Thanks all.

  • Ensure that your regex is fine and is matching correct URLs. Apr 1, 2019 at 7:37
  • Remove the / after ^: try ^ind/en/deu/$
    – Marek Musielak
    Apr 1, 2019 at 7:38
  • We have different countries as site. Some of them are not live, but they are visible on the dropdown in home page. We want that if user selects that country, instead of showing page not found it should redirect to some old site. It is not happening with the regex mentioned above. Apr 1, 2019 at 9:59

2 Answers 2


Looking at your comment:

enter image description here

I understand that you have an item which actually matches that url but you don't want to show it and want to redirect instead, correct?

It won't work.

SXA redirect maps only work when item cannot be resolved from the url.

Try changing it temporarily to a url which cannot be resolve (just add few letters at the end of your regex) and it will work.

If you want to do redirect for an item which does exist, you either use Redirect items or better use II Rewrite module.


You should check (just my learnings from a few tests):

  • does the old url match an existing page? (if so, it will use that and not redirect)
  • skip any language in the old url

If that is all ok, it should redirect (the ^/ and /$ are needed if you want regex - not sure if you do here)

ps: I don't think the external url will work though, but it should still redirect (to a faulty url in that case)

  • We have country code and language code as url. /bgd/en/aus/ . How to skip the en in the middle? Please help. Apr 1, 2019 at 10:00
  • If it is in the middle, it's probably not Sitecore who is putting it there so you should keep the entire url. Was a bit of trial & error for me too.. but if you need to redirect to an external site, I think this will not be your solution for the redirect as external ones did not work for me.
    – Gatogordo
    Apr 1, 2019 at 10:04
  • Sxa default redirect wont work in this case? Do we need to use IIS redirect? Apr 1, 2019 at 10:05
  • I think so - maybe someone from the SXA team can confirm to be sure...
    – Gatogordo
    Apr 1, 2019 at 10:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.