In most cases there is a primary site which responds when you access the domain root. You could just add a site which responds when you call /en.
Please explain why you want to do that?
Cheers,
Dennis.
Thread Starter
norboo
(@norboo)
Hi Dennis!
I think this is the most common way of structuring a multilingual website:
http://www.domain.com/language1 (English)
http://www.domain.com/language2 (Chinese in my case)
Other multilingual plugins (Polylang for example) have the option to /language/ to the main (default) site too. I completely understand that those plugins are functioning in a different way (not multi site environment) that’s why is hard to figure it out how to do it with this plugin.
I changed the home_url and site_url directly in the DB, but I don’t know if this is the common practice since this is my first multisite plugin.
Any suggestions/advices are more than welcomed!
N.P.
Thread Starter
norboo
(@norboo)
And I forgot to mention that everything works as expected after I changed the links in the DB, but I need to redirect http://www.domain.com (without any language) to http://www.domain.com/language1 for example, otherwise the page can’t be found.
N.P.
I think that it’s not allays true that a site has to have all the languages organized in this way. But this is maybe just a question of personal taste.
There is also a project which deals with this in a different way: https://github.com/oncleben31/Multisite-Language-Switcher-Theme