Can I force URL Alias based on Culture?

Kurt Muller asked on July 20, 2018 16:41

HI all

In site settings, I am able to Force domain culture which means if I manual type in a culture specific domain with a different culture's alias, the domain redirects to match the alias's culture.

I am trying to achieve the opposite.

If want the culture domain to stay the same and the alias to change to match.

Hope this makes sense

Thanks Kurt

Recent Answers


Peter Mogilnitski answered on July 20, 2018 17:34

Take a look at the documentation

0 votesVote for this answer Mark as a Correct answer

Kurt Muller answered on July 23, 2018 06:58

Hi Peter

I've read this documentation, and I'v implemented this before. I want the routing engine to detect culture first then change the alias accordingly.

Kurt

0 votesVote for this answer Mark as a Correct answer

Kurt Muller answered on July 23, 2018 07:02 (last edited on July 23, 2018 07:02)

0 votesVote for this answer Mark as a Correct answer

Juraj Ondrus answered on July 23, 2018 10:35

There is only a setting to redirect the aliases to the main URL, but there is no logic to change the page alias according the culture. In this case I would recommend using IIS URL Rewriting and do the redirection on the IIS level - for better performance. Or, another option would be doing the redirection in code using the request event handlers.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.