Skip to content Skip to sidebar

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 3 replies, has 2 voices.

Last updated by Prosenjit Barman 1 year, 10 months ago.

Assisted by: Prosenjit Barman.

Author Posts
September 17, 2023 at 3:15 pm #14408457

lauraF-11

Hi,
Since I changed the language extension from /?lang=fr to /fr/
the redirection is wrong:

The original URL hidden link

is redirected to

hidden link (which is wrong because the page is in English and not French)

The correct URL is
hidden link

I expected to see:
hidden link

Instead, I got:
hidden link

Please, can you help me to solve the issue?

Many thanks

September 19, 2023 at 7:27 am #14416697

Prosenjit Barman
WPML Supporter since 03/2023

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hello There,
Thanks for contacting WPML Support. I understand the issue you're having and will try my best to assist you in this matter.

On your site, The main page is: hidden link

When I tried to switch to the French language, the French page[ hidden link ] loaded properly.

Please check this video for a better understanding: hidden link

Since everything appeared to function correctly during my review, Can you specify where you encountered the problem?

Furthermore, after modifying the Language URL format, we suggest using WPML's "Link Target" tool. This helps in updating links in posts and strings to ensure they direct appropriately to the translated content. Please follow the steps mentioned below.

- Please go to "WPML > Settings"
- Scroll down to the "Translate Link Targets" section and click on "Scan now and adjust links"

Let me know if that helps or if you need further assistance in this matter. I will be happy to help.

Best Regards,
Prosenjit

September 19, 2023 at 4:44 pm #14422633

lauraF-11

Hi Prosenjit,
thank you for your support.

Since I changed the URL from /?lang=fr to /fr/
the problem is WPML make a redirection to a page in English

Please, see the URL below:

hidden link

WPML redirect the above URL to

hidden link (which is in English)

The Ahrefs site audit report advise I have other 5 pages with the same issue:

Example:
hidden link

WPML redirect to

hidden link (which is in English)

Many thanks
Laura

Screenshot 2023-09-19 alle 18.42.39.jpg
September 20, 2023 at 5:09 am #14426121

Prosenjit Barman
WPML Supporter since 03/2023

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hello Laura,
Thank you for providing further details on the issue.

Using the redirection checker tool, I checked the link and found that the redirection to English posts is set by WordPress. Please check this screenshot for a better understanding: hidden link

Kindly be informed that in case of a URL that does not exist or is incomplete, WordPress has a built-in redirection feature that can redirect them to the closest existing URL or suggest relevant content that matches the URL without causing an error or losing traffic. This feature is useful for maintaining the user experience and keeping the visitors engaged with the website.

In your case, the same is also happening. As this post(hidden link) is not available, the WP Redirection is redirecting to the URL close to it, which is the post in English(hidden link).

The redirection is solely managed by WordPress. If you want to change it, you can do that by using a Redirection plugin such as "Redirection".

I hope I'm able to clarify it for you. But, feel free to let me know if there is anything else if you need help. I will be happy to assist.

Best Regards,
Prosenjit