Ask your WordPress questions! Pay money and get answers fast! Comodo Trusted Site Seal
Official PayPal Seal

endpoint, EP_MASK ? WPML + multisite : in URL, change the place of lang (en, fr, nl ...) WordPress



I use WP multisite and WPML.
The URL of a post in a subsite is like that :

but I want this structure of permalink :

is it possible ? And how please ?

EDIT : more information.... There is a main site. There is several sub-sites : subsite 1, subsite 2, subsite 3, subsite 4 etc...
and each site use WPML. So for each site I need to have

For the moment I have

lang (fr, nl, en ... for example) is not at the good place for me.

Answers (3)


Bob answers:

are you trying to create subsite for each language?

Sébastien | French WordpressDesigner comments:

I don't understand what you suggest... Could you precise ?


Cesar Contreras answers:

The structure of your multi-site installation is "" that's why it is displayed in this way "http: // ...."

the other option you have is to show them as subdomain "http: // ..."

Sébastien | French WordpressDesigner comments:

thank you but it's a very basic information....


MDan answers:

Did you setup your WPML project already? If not, you have a full tutorial here, directly from WPML:
This is per your example (different domains).


If you want to set the network under subdomains:

For custom URL rewriting, here is a sample solution:

And further help here:

icl_ls_languages filter is the key here.

Sébastien | French WordpressDesigner comments:

I think you have not understand my question.

each subsite is un english and un french.

what i need is to deplace "en" and "fr" in the url

Sébastien | French WordpressDesigner comments:

what I need : change the position of "en" or "fr" in each url of each subsite.

MDan comments:

Please check this topic, it's a

You could also try with this plugin:

Altough I don't think that kind of URL structure can be set with WPML, it will interfere with the multisite evironment.
For this kind of question, I think it would be best if you could discuss directly with the support team at WPML, so you will know for sure if it is or isn't feasible to achieve what you want.