1

I am mapping old Urls to new Urls using Sitecore 9.0 with SXA 1.5 - Redirect Map following this document:

https://doc.sitecore.net/sitecore_experience_accelerator/16/working_with_content/search/map_a_url_redirect

It works for direct Urls but when I do a wild-card, I get a resource unavailable.

For example, I map /Destinations/Paris to /Paris the redirect works.

But when I do the same with wild card like

/Destinations/(.+) to /Paris or

/Destinations/(.+) to $1 or

^/Destinations/(.+) to /Paris

They are not working. Any pointers appreciated.

1

I believe there is some logic in SXA to ensure that the text is actually a regular expression.

It should start with ^ and end with $.

Try this format:

^/careers/job-opportunities(/.*)?$
| improve this answer | |
  • Thanks that worked - Looks like it needs to start with a ^ and end with $ – Ramani Jul 11 '18 at 0:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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