Skip Navigation

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 -
- - - - - - -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 5 replies, has 0 voices.

Last updated by Waqas Bin Hasan 3 days, 15 hours ago.

Assisted by: Waqas Bin Hasan.

Author Posts
June 19, 2025 at 2:44 pm #17151261

muhammadA-40

Background of the issue:
I am using WPML to translate my website hidden link. I have translated product categories through WPML → Taxonomy Translation. I want to keep the slug in English for both languages, but WPML automatically appends -ar or arabic page title to the slug in Arabic. I also experience a too_many_requests_error on product pages in Arabic, which does not occur in English.

Symptoms:
WPML automatically changes slugs by appending -ar in Arabic translations. Too many requests error occurs on Arabic product pages.

Questions:
How can I enforce the same slug in both languages without WPML appending -ar?
How can I resolve the too_many_requests_error on Arabic product pages?

June 20, 2025 at 10:47 am #17153963

Waqas Bin Hasan
WPML Supporter since 05/2014

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi,

Thank you for contacting the support.

Please note that this is a limit by WordPress that you can not use the same slug in the same post type (and taxonomies). This means that the slugs must be unique. However, you can try the "Copy from original document" by following this guide: https://wpml.org/documentation/getting-started-guide/translating-page-slugs/#copy-url

For your other question, looks like there's some kind of redirection in place which is causing so many 301 moved permanently headers. You may check for such a product URL at hidden link for more details and try disabling any redirections (or check server settings).

If the redirection issue continues to appear, please report in a separate ticket, because as per forum policy we can only handle one issue per ticket/chat. So you can get more to the point help, without mixing up several issues in one long ticket.

Regards.

June 20, 2025 at 7:35 pm #17155260

muhammadA-40

1. Language Switching & URL Structure Issue
When I switch from the primary language (English) to the secondary language (Arabic), WPML automatically appends the language code (e.g., /ar/) to the URL. However, this behavior is causing inconsistencies because the Arabic URLs now differ structurally from the primary language URLs. I’ve reviewed the documentation you shared, but it doesn’t address my specific scenario.

2. Redirection Problem (Priority Issue)
The redirection issues began after I changed the English URL format to "Postname" (e.g., example.com/product-name). While English URLs work perfectly, Arabic product pages fail to load correctly (e.g., example.com/ar/product-name returns errors). I suspect I accidentally modified a critical setting, which triggered this problem.

Next Steps:

I’ll focus on resolving the redirection issue first (Arabic product pages).

Will create a separate ticket for the URL structure inconsistency.

June 23, 2025 at 7:09 am #17158202

Waqas Bin Hasan
WPML Supporter since 05/2014

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thank you for the updates.

Please note that when you use "different languages in directories" option in WPML -> Languages, then WPML adds language code to the URL, like you see /ar/ for the Arabic. If you don't want to make this part of the URL, you can either use "Language name added as a parameter" which adds something like ?lang=ar or "A different domain per language" which requires separate domains per language. See https://wpml.org/documentation/getting-started-guide/language-setup/#language-url-format for details.

However, if you want to change /ar/ to something else, then you'll need to add a new language and change the code accordingly. Because once a language has been added, this code can not be changed. See following for details:

- https://wpml.org/faq/how-can-i-assign-or-change-language-code-to-existing-content/
- https://wpml.org/documentation/getting-started-guide/language-setup/editing-wpmls-languages-table/ for details.

For the redirection issue, sure please take your time and also see https://wpml.org/documentation/getting-started-guide/translating-page-slugs/ for an understanding about translating slugs in WPML. Feel free to report in a separate ticket if you want more help on the same thing.

June 25, 2025 at 4:50 pm #17170417

muhammadA-40

I’m not sure if my concerns are being fully understood, or perhaps I haven’t explained them properly. Here’s the issue I’m facing:

- My English URL: hidden link
- My Arabic URL: hidden link

As you can see, the Arabic URL automatically adds /ar/ and appends -ar to the category slug (gaming-desk-ar). However, I want to keep the same category name (gaming-desk) for both languages—only changing the content (text) when switching to Arabic.

Currently, when I manually change product taxonomies, the system forces -ar into the Arabic URLs. Additionally, only translated products appear in Arabic without a 301 error.

What I need:
1. The same category, product, and page slugs in both English and Arabic (e.g., /gaming-desk/ in both).
2. Only the content (text) should change based on language selection.

June 26, 2025 at 8:00 am #17171787

Waqas Bin Hasan
WPML Supporter since 05/2014

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thank you for the updates.

I completely understand your concern, however, as I mentioned earlier that by default, WordPress does not allow having two categories with the same slug, so WPML adds the language code at the end.

However, WPML allows you to bypass this restriction if you edit the slug manually. Please see https://wpml.org/documentation/getting-started-guide/translating-post-categories-and-custom-taxonomies/ for details.