This thread is resolved. Here is a description of the problem and solution.
Problem:
The client's site has a correct URL structure (e.g.,
https://www.campmontana.ch/fr/camp/
), but when a URL with a query parameter for language (e.g.,
https://www.campmontana.ch/camp/?lang=fr
) is entered, it does not redirect to the correct structure.
Solution:
We recommend using a redirection plugin like "Redirection" to set up the desired redirects. This issue is related to WordPress's behavior, not WPML's. The incorrect URL does not load the French content but shows the default language content instead. To address this, you can:
1. Install the "Redirection" plugin from https://wordpress.org/plugins/redirection/.
2. Set up a redirect from the incorrect URL to the correct URL structure.
Additionally, you can stop WordPress from guessing URLs by following the method outlined in this documentation: https://wpsurfer.com/stop-wordpress-from-guessing-urls/.
If this solution does not seem relevant to your issue, please open a new support ticket in our forum: Contact WPML Support.
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 1 reply, has 2 voices.
Last updated by 1 year, 4 months ago.
Assisted by: Mihai Apetrei.