I've done alot of looking around but I can't seem to find the answer to an issue I am facing.

Is it possible to use the UrlRewrite module from the Sitecore marketplace to perform language specific redirects?

For example, let's say I have a multilingual site called example1.com and I want example1.com/en/initial-url to redirect to example1.com/en/redirected-url, but I only want this to happen for the 'en' language.

I wouldn't want example1.com/fr/initial-url to redirect anywhere.

In the Match section of the inbound rule I created, these were the values of each field:

Match Type - Matches the Pattern
Using - Regular Expressions
Pattern - en\-gb\/questions.*

Thank you.

UPDATE I've managed to get this working by amending the Languages.AlwaysStripLanguage setting to true. As recommended by jrap, test thoroughly if you change this setting.

  • Have you tried including the language in the match URL? I would think it should just work. Mar 29, 2019 at 11:40
  • I've attempted this but it doesn't appear to work. I had an inbound rule with the language included in the path I specified in the pattern field
    – pmann91
    Mar 29, 2019 at 11:50
  • Can you include what you had in that field in your question for more context? Mar 29, 2019 at 11:51
  • Sure, in the Match section of the inbound rule, these were the values of each field: Match Type - Matches the Pattern, Using - Regular Expressions, Pattern - en\-gb\/questions.*
    – pmann91
    Mar 29, 2019 at 11:57
  • 1
    I would recommend adding it into your question so it's easier to read and more readily available to others. Mar 29, 2019 at 12:11


Your Answer

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