This thread is resolved. Here is a description of the problem and solution.
Problem:
You are experiencing issues with redirects on your multilingual site, where users and Google bots are redirected to the incorrect language domain when visiting old URLs with language parameters. This problem arises after moving each language to a separate domain.
Solution:
Our investigation confirmed that WPML does not trigger redirects between languages when 'display as translated' mode is used. Instead, the same product is displayed on all language URLs without altering the slug or structure. We recommend implementing custom redirection rules in your redirection plugin or .htaccess. For example:
Source URL: ^/fr/(.*)<br />Target URL: https://evrotrans.fr/$1
This approach depends on how your server handles redirects and the availability of target slugs. Additionally, check any server-level rewrites or caching layers that might enforce canonical redirects. If further customization is needed, consider contacting one of our certified partners: https://wpml.org/contractors/
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 for further assistance.
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: Compatibility
This topic contains 10 replies, has 0 voices.
Last updated by vadimP 1 week, 2 days ago.
Assisted by: Itamar.
Author | Posts |
---|---|
June 16, 2025 at 1:01 pm | |
vadimP |
Background of the issue: Symptoms: Questions: Our end goal is to redirect any user visiting hidden link to hidden link At the moment we tried doing that with Rank Math Redirects and htaccess - but it didn't worked as WPML seems to be hijacking this redirect earlier |
June 16, 2025 at 2:05 pm | |
June 16, 2025 at 2:07 pm #17139415 | |
Itamar WPML Supporter since 02/2016
Languages: English (English ) Timezone: Asia/Jerusalem (GMT+03:00) |
Hi, Please get back to me if you need more help with this issue. Regards, |
June 17, 2025 at 8:33 pm #17144075 | |
vadimP |
Hello, so I disabled all plugins except woocommerce and wpml and I'm still getting redirect back to LV version of the product. I also switched to another theme Twenty Twenty five and I was still redirected back to LV version Here is log from redirect checked >>> hidden link > -------------------------------------------- Status: 301 Moved Permanently >>> hidden link > -------------------------------------------- Status: 200 OK |
June 18, 2025 at 7:56 pm #17148153 | |
Itamar WPML Supporter since 02/2016
Languages: English (English ) Timezone: Asia/Jerusalem (GMT+03:00) |
Hi, I checked this product hidden link and could see it has no translation into French (or any of the other languages. Please see the attached screenshot, no-fr-translation.jpg.Moreover, I can see that none of the products have translations into the different languages. It's possible that all the translations are in draft status. Please see the attached screenshot list-of-all-products.jpg. This typically occurs when you import products into your site but fail to complete the import process using the WPML Export and Import plugins. https://wpml.org/documentation/related-projects/wpml-export-and-import/ In any case, the missing translations explain the redirection. WordPress is working to resolve this issue and therefore provides the product in the default language. Regards, |
June 19, 2025 at 11:34 am #17150206 | |
vadimP |
Hi Itamar, I see what you are saying, however all translations are in place. For example product that we discussed Here are translations - Latvian (original) - hidden link French - hidden link Russian - hidden link English - hidden link I assume this happens because all translations are done on the fly. Is there a workaround for our case? |
June 19, 2025 at 8:37 pm #17152300 | |
Itamar WPML Supporter since 02/2016
Languages: English (English ) Timezone: Asia/Jerusalem (GMT+03:00) |
Hi, I confirm I see this product showing in French, Russian, and English. I'm unsure how you achieved this, but, at least to the best of my understanding, it is not translated with WPML. When I check any of the translated versions of this product from the front end and click the option to edit the product, I get the Latvian product editing screen: hidden link. Please see the attached edit-391312.jpg. And there I can see it is not translated. Please see the attached screenshot not-translated.jpg. Could it be that we are seeing a cached version from previous versions of this site? If you have no answer for this or an idea of how it happens, please proceed with the following. (You'd better try the following on a staging site and not on your live site.) 1. Clear and disable any caching on your site. 2. In WPML -> Languages -> Language URL format, switch from 'A different domain per language' to 'Different languages in directories'. Click the Save button, and re-save the permalinks of the site. 3. Switch the theme to the default WordPress theme, Twenty Twenty-Four. 4. Deactivate all the third-party plugins except WPML, Strings Translation, WooCommerce, and WooCommerce Multilingual & Multicurrency. 5. Check the following: A. Do you see the translated version of the product? |
June 20, 2025 at 1:47 pm #17154580 | |
vadimP |
Hi Itamar, Here is an overview of how site translations work: All translations are done via String Translations + ACF. For example product names are combined from car brand + part category + part ID number. And those individual items are translated beforehand. Meaning we have all categories translated via wpml. Car brands and ids doesn’t need a translation, they are duplicated. So in some way we are not using regular translations, however we are also not using some third-party tools and plugins to translate. Can we solve it given our setup? |
June 23, 2025 at 12:16 pm #17160094 | |
Itamar WPML Supporter since 02/2016
Languages: English (English ) Timezone: Asia/Jerusalem (GMT+03:00) |
Hi, To the best of my understanding, your customizations make this case outside the scope of our support forum. I'm consulting with our second-tier supporters to gather their feedback on your case. I'll update you here once I have their reply. I appreciate your patience. |
June 23, 2025 at 12:20 pm #17160145 | |
vadimP |
Thanks Itamar, We would happily order paid services from your developers in order to solve this and address this issue as it significantly affects our SEO |
June 25, 2025 at 6:45 pm #17170678 | |
vadimP |
Hello Itamar, do you have an update? |
June 26, 2025 at 10:13 am #17172758 | |
Itamar WPML Supporter since 02/2016
Languages: English (English ) Timezone: Asia/Jerusalem (GMT+03:00) |
Hi, George and Nigel, two of our second-tier supporters, have reviewed your case, and this is their finding. Summary of Our Findings What We Confirmed: When this mode is used, WPML does not trigger redirects between languages. Instead, the same product is displayed on all language URLs without altering the slug or structure. George’s Input: George suggests using custom redirection rules in your redirection plugin or .htaccess to rewrite these URLs. For example: Source URL: ^/fr/(.*) Target URL: <em><u>hidden link</u></em> He notes that this approach might work, but it depends on how your server handles redirects and the availability of target slugs. Nigel’s Input: He confirmed that: Product slugs remain the same across languages (e.g., /product/cap/ in both English and Spanish). WPML does not redirect users back to the default language. Therefore, WPML is not the component triggering the 301 redirect you're seeing. Recommendation: We recommend testing with a clean redirection rule, as suggested by George, and reviewing any server-level rewrites or caching layers (e.g., Cloudflare, NGINX) that might enforce canonical redirects. Since your setup includes custom logic (e.g., product titles via ACF and string translation, rather than standard WPML product duplication), this may be contributing to the issue and is outside the scope of standard WPML support. If you need further help with what you are trying to achieve, I would suggest you consider contacting one of our certified partners from this link: Before doing so, please have a look also here: With our contractors, you may receive the custom assistance you need to move forward with your project. Note: I can see you are a contractor as well. Perhaps try to look for one that is specified in what you are trying to achieve. We hope this provides a clearer picture of what’s happening. Best Regards, |
June 27, 2025 at 8:23 am #17176431 | |
vadimP |
Thank you so much Itamar, We will proceed with forcing server redirects and see if that will help Vadim |