I want to setup redirects from
/page1
/page2
to
/en/page1
/en/page2
or another culture read from Accept-Lang header
so page will be accessible from both type of url's
And I want to setup it globally for all pages of my website, except back-office
Tomioka
07/12/2024, 3:27 PM
pls help :d
k
kdx-perbol
07/18/2024, 7:23 AM
If you add a Culture & Hostname domain
/en
, wouldn't this make it work like you want?
kdx-perbol
07/18/2024, 7:24 AM
Except for the actual redirects.
So you want
/page1
to be a virtual URL that always redirects based on language-sniffing?
Then maybe a base controller (for all pages) that detects a visit to a language-less URL and redirects could work for the entire site, and then C&H Domains for all languages.