דלג לתוכן דלג לסרגל הצד

נושא זה מכיל 0 1, יש ל 0קולות.

עודכן לאחרונה על ידי saadM-4 לפני שבוע 1, 2 ימים.

בסיוע: Bruno Kos.

מחבר פוסטים
יולי 8, 2025 ב־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?