Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
You are experiencing issues with 301 link redirection in Yoast SEO for Arabic directions, while English ones work fine.
Solution:
1. Add the redirection URL in the encoded format:

old: ar/%D8%B9%D9%84%D8%A7%D9%85%D8%A9%20%D8%A7%D9%84%D9%85%D9%86%D8%AA%D8%AC/%D8%A7%D9%84%D9%84%D9%88%D9%81/?filter_color=104-soft-ivory-ar&query_type_color=or

new: ar/%D9%85%D8%AA%D8%AC%D8%B1

2. Save changes and clear the cache.
3. Optionally, set the redirection back to the Arabic language for easier management in the admin area:

old: /ar/علامة المنتج/اللوف/?filter_color=104-soft-ivory-ar&query_type_color=or

new: ar/متجر

If this solution does not resolve your issue or seems irrelevant due to updates or differences in your case, we recommend opening a new support ticket. Additionally, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. For further assistance, please contact our support team at WPML support forum.

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.

Tagged: 

This topic contains 9 replies, has 2 voices.

Last updated by Long Nguyen 9 months, 1 week ago.

Assisted by: Long Nguyen.

Author Posts
July 15, 2024 at 1:58 am

miraN-2

Background of the issue:
I’m having issues with 301 link redirection in Yoast SEO for Arabic directions, while English ones work fine. Yoast support recommended reaching out to WPML support, as they’ve resolved similar problems in the past.

Symptoms:
301 link redirection in Yoast SEO for Arabic directions is not working.

Questions:
How can I fix the 301 link redirection issue for Arabic directions in Yoast SEO?

July 15, 2024 at 3:10 am
July 15, 2024 at 3:49 am #15951592

miraN-2

Similar to the problem, I translated the shop page to Arabic and changed the slug part. It was the original slug /ar/متجر - The new slug is ar/متجر123 *However, in order to fully simulate the problem, I need to redirect the link and I was redirecting using the redirect feature of the Yoast SEO premium plugin.

July 15, 2024 at 4:37 am #15951753

Long Nguyen
WPML Supporter since 02/2022

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

I've installed Yoast SEO Premium on the sandbox site and tried to replicate the issue there. It looks like the redirection doesn't work in the second language when there is a parameter in the URL.

I'm discussing this issue with our 2nd tier support and update you here when I have something to share.

Thanks.

July 18, 2024 at 6:37 am #15970153

Long Nguyen
WPML Supporter since 02/2022

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

Our 2nd tier support sees that the issue is related to the encoded characters. If I change the redirection:
old: ar/%D9%85%D8%AA%D8%AC%D8%B1/?filter_color=20-coy-ar
new: ar/%D9%85%D8%AA%D8%AC%D8%B1
then it works.
After that, I update the redirection back to the Arabic language:
old: ar/متجر/?filter_color=20-coy-ar
new: ar/متجر
and it also works.

Can you please confirm this on the sandbox site and on your site?

Looking forward to your reply.
Thanks

July 18, 2024 at 7:56 am #15970678

miraN-2

I see that your redirection is working successfully. But when I redirect in the same format as you showed, it still opens to the same page and a successful redirect is not achieved. We do not use and redirect with encoded characters. Also there is a screen capture video link here.

hidden link

The link I'm trying to redirect is:

/ar/علامة المنتج/اللوف/?filter_color=104-soft-ivory-ar&query_type_color=or

Target link is:

ar/متجر

Maybe I'm doing something wrong somewhere. Can you check it too? Can you confirm the problem I'm seeing?

I also thank you very much for taking your time to solve the problem.

July 18, 2024 at 8:49 am #15971025

Long Nguyen
WPML Supporter since 02/2022

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

Can you please recheck that redirection? It should work now. Here are steps I do:

1. Add the redirection URL in the encoded format:
old: ar/%D8%B9%D9%84%D8%A7%D9%85%D8%A9%20%D8%A7%D9%84%D9%85%D9%86%D8%AA%D8%AC/%D8%A7%D9%84%D9%84%D9%88%D9%81/?filter_color=104-soft-ivory-ar&query_type_color=or
new: ar/%D9%85%D8%AA%D8%AC%D8%B1

2. Save changes, clear cache, check the redirection in the frontend.

3. Set the redirection back to the Arabic language (you can skip this step, if you want to see the Arabic language, go ahead):
old: /ar/علامة المنتج/اللوف/?filter_color=104-soft-ivory-ar&query_type_color=or
new: ar/متجر

Looking forward to your reply.
Thanks

July 18, 2024 at 9:24 am #15971234

miraN-2

> I Add the redirection URL in the encoded format.

• Like you said

Old:
ar/%D8%B9%D9%84%D8%A7%D9%85%D8%A9%20%D8%A7%D9%84%D9%85%D9%86%D8%AA%D8%AC/%D8%A7%D9%84%D9%84%D9%88%D9%81/?filter_color=104-soft-ivory-ar&query_type_color=or

New:
ar/%D9%85%D8%AA%D8%AC%D8%B1

> I Set the redirection back to the Arabic language

Old:
/ar/علامة المنتج/اللوف/?filter_color=104-soft-ivory-ar&query_type_color=or

New:
ar/متجر

Here is link for screen capture video;

hidden link

July 18, 2024 at 9:33 am #15971356

Long Nguyen
WPML Supporter since 02/2022

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Do you try to access the URL in the frontend? Here is how it works on my end
hidden link

Looking forward to your reply.
Thanks

July 18, 2024 at 12:02 pm #15972335

miraN-2

The first time I created the redirect, it did not work as shown in the screen capture I sent you. When I tried again after the capture you sent, I confirmed that it has successfully redirected. In this case, the problem has been resolved. Thank you very much for your efforts. I appreciate.

I would like to confirm the steps I need to take to avoid any further issues:

1. Add the redirect URL in encoded form.
2. Set the redirection back to the Arabic language.
3. Clear the cache.

If I follow these steps, the problem should disappear. Did I understand everything correctly?

July 19, 2024 at 1:27 am #15975315

Long Nguyen
WPML Supporter since 02/2022

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

The steps should be:

1. Add the redirect URL in encoded format.
2. Clear the cache.
3. Set the redirection back to the Arabic language. Note: this step is optional, you will still see the Arabic slug in the URL. It helps you manage the redirection in the admin area easier.

Thanks.