I can't find a real solution here about how can i make custom language permalinks in Wordpress.
For translation i use loco translater plugin (basically it's a .po,.pot file editor)
I need this structure:
domain.com/ - homepage orig language
domain.com/en/ - homepage english
domain.com/blog/ - blog post list from nl_NL category
domain.com/en/blog/ - blog post list from en_US category
domain.com/blog/this-is-a-post/ - blog post if it's in nl_NL category
domain.com/blog/en/this-is-a-post/ - blog post if it's in en_US category
.htaccess is not solution because the blog post custom permalinks
The best solution would be something like:
If there is /en/ right after the url, wordpress read permalinks after /en/, not after the url, and send a get parameter "lang=en_US"
If there isn't /en/ everything is normal.
Thank you for your help!
Peter
.htaccessfile out of the question? You can easily make an.htaccessfile that also handles the blog permalinks. - serraosays