تخطي التنقل

الوسوم: 

يحتوي هذا الموضوع 0 ردود ، لديه 0أصوات.

آخر تحديث بواسطة saadM-4 قبل 5 أيام، 7 ساعات.

يساعده: Bruno Kos.

الكاتب المشاركات
يوليو 8, 2025 في 6:30 ص #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?