redirect main country to /, some to /$country, and default to one page
-
Hello all,
First, thanks for this great plugin!
I’m working with WP and WPML, and want to setup a specific rule:
If user is from my main language country, I want him to be redirected to /, if from one other setup language country, I want him to be directed to the matching /$language, and other country or not correctly detected people should be directed to a splash page on /language.
In my specific case, it would be:
Germany: /
Netherlands: /nl
Sweden: /sv
else: /languageBut, of course, if I set it up like that, i end up with an endless loop for german people.
If I set up Germany on /de, i have a 404 as German is my default WPML language (so /de doesn’t exist).Other option is to create a “fake” default language (‘en’), so /de would exist. But it adds an extra unused (default) language in the BackEnd! Obviously, I don’t want that.
Anyone has an idea on how to handle it???
Thx,
Raphael
- The topic ‘redirect main country to /, some to /$country, and default to one page’ is closed to new replies.