This thread is resolved. Here is a description of the problem and solution.
Problem:
The client is experiencing an issue where the URL parameter '?lang=en' remains in the URL after setting up redirections using Rank Math on a site under development. The expected URL was 'https://www.bassetti-group.com/en/', but the actual result is 'https://www.bassetti-group.com/en/?lang=en'.
Solution:
We analyzed the situation and found that the redirection to 'https://www.bassetti-group.com/en/?lang=en' is handled by Rank Math, and this behavior is not related to WPML. Visiting 'https://www.bassetti-group.com/en/' does not redirect further, which aligns with WPML's expected behavior. We also noticed that the client does not have WPML SEO installed. We recommend installing WPML SEO to enhance compatibility with Rank Math by helping it recognize the language settings more accurately. Since this issue is related to Rank Math's functionality, we advise contacting Rank Math's support for further assistance.
Please note that this solution might be outdated or not applicable to your specific case. 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. If the issue persists, please open a new support ticket with us.
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.
This topic contains 2 replies, has 2 voices.
Last updated by 7 months ago.
Assisted by: Lucas Vidal de Andrade.