Multi-Domain Language Switching with Directory-Based URL Modifications
-
Hello there,
We would like to achieve multi-domain access to a single wp site while switching the language with retaining directory-based URL modifications and staying on the current domain.
To demonstrate, here is our goal with a post called ‘My Post’, having two languages (en, de) and two domains (domain-en.com, domain-de.com):
For domain-en.com with English as the default language:
domain-en.com/my-post/
domain-en.com/de/mein-post/
For domain-de.com with German as the default language:
domain-de.com/mein-post/
domain-de.com/en/my-post/
We want users to switch languages within the same domain without changing the domain, while also being able to access the site via multiple domains.
We don’t want to use Multisite solution, because we want the domains to point to the same content.
The plugin’s url modification option ‘The language is set from different domains’ is pretty close to what we are trying to achieve. But instead of having one language associated with each domain, we would like to enable the users to change the language from the directory name in pretty permalinks while keeping them on the same domain.
Is there an existing way to achieve this with Polylang, possibly in combination with another plugin or through custom code? If not, how complex would it be to add this functionality, and is it something we might see in a future update?
Thanks
- You must be logged in to reply to this topic.