ASP.NET Core 3.1 url forwarding

99 Views Asked by At

I'm running an ASP.NET Core 3.1 webapp. Url's have this format:

https://www.example.com/nl/controller/action/id

'nl' is a language parameter. Is there any way around to forward traffic that uses another language value than 'nl'?

So when someone is visiting 'https://www.example.com/en/controller/action/id' it should be forwarded to 'https://www.example.com/nl/controller/action/id'.

Can this be set up via Startup.cs?

0

There are 0 best solutions below