Creating custom permalink structure for languages

Your question is complicated enough to answer by myself, but I would suggest you to install qTranslate plugin. As the plugin’s description says:

Choose one of 3 Modes to make your URLs pretty and SEO-friendly. – The
everywhere compatible ?lang=en, simple and beautiful /en/foo/ or nice
and neat en.yoursite.com

So you can try to inspect the plugin’s code and see how they do it, or just use it at all.

Leave a Comment