Skip Navigation

This topic contains 0 reply, has 0 voices.

Last updated by saadM-4 5 days, 13 hours ago.

Assisted by: Bruno Kos.

Author Posts
July 8, 2025 at 6:30 am #17211822

saadM-4

Background of the issue:
I’m using WPML to manage region-based content, not language translations. My site has 4 regions: America (default), Middle East & Africa, Europe, and Asia Pacific. I want to customize the language URL slugs so that instead of showing /ar/, /fr/, and /zh/, the URLs show /mea/ for Middle East & Africa, /europe/ for Europe, and /asia/ for Asia Pacific. I have already tried changing the 'URL language code' under WPML > Languages > Edit Languages.

Symptoms:
The updated slugs (/mea/, /europe/, etc.) are not working — they return a 404.

Questions:
Can you please confirm the correct and supported way to change the language slugs to custom values for this kind of regional setup?
Is there anything specific I need to do (e.g., flush permalinks, avoid certain language codes) to make these custom slugs work properly?