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.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
- | 7:00 – 12:00 | 7:00 – 12:00 | 7:00 – 12:00 | 7:00 – 12:00 | 7:00 – 12:00 | - |
- | 13:00 – 16:00 | 13:00 – 16:00 | 13:00 – 16:00 | 13:00 – 16:00 | 13:00 – 16:00 | - |
Supporter timezone: America/Sao_Paulo (GMT-03:00)
Tagged: Exception
This topic contains 15 replies, has 1 voice.
Last updated by Lucas Vidal de Andrade 3 days ago.
Assisted by: Lucas Vidal de Andrade.
Author | Posts |
---|---|
July 19, 2025 at 5:08 am #17252131 | |
abdul-alimB |
<b>Background of the issue: </b> <b>Symptoms: </b> <b>Questions: </b> |
July 21, 2025 at 8:38 am #17254136 | |
Dražen Supporter
Languages: English (English ) Timezone: Europe/Zagreb (GMT+02:00) |
Hello, Thanks for contacting us. While you wait for my colleague to take over the ticket, let me try to help you with the issue quickly. Can you please just check few things for us: Please make sure to create a backup, before doing any actions or check in staging site, just in case. - Make sure you have a backup. Let me know how it goes. Regards, |
July 22, 2025 at 6:14 am #17257784 | |
abdul-alimB |
Dear Drazen, The site has backup. As for the other steps, I checked on those (disabling all other plugins save plugins &vice-versa), the redirect works when wpml is disabled. Hence, the problem seems clearly with wpmpl. *Please see the screenshot of issue shown by rank math team. kindly help resolving it as the issue is affecting scores of my pages on live site. |
July 22, 2025 at 1:00 pm #17259408 | |
abdul-alimB |
Despite charging a hefty amount for the software, your support is very slow and poor. I raised such a critical matter, scores of my pages are landing on wrong url, and you don't seem to care much. |
July 23, 2025 at 8:10 pm #17265531 | |
Bobby WPML Supporter since 04/2015
Languages: English (English ) Timezone: America/Los_Angeles (GMT-07:00) |
Thank you for your patience while this was being reviewed. I understand how critical this issue is for you, and I can see why it’s been frustrating. I’ve looked into the redirect behavior and can confirm that it’s originating from WPML, which aligns with what the Rank Math team shared earlier. >>> hidden link > -------------------------------------------- Status: 301 Moved Permanently I would like to request temporary access (wp-admin and FTP) to your site to test the issue. **Before we proceed It is necessary to take FULL BACKUP of your database and your website. Providing us with access, you agree that a backup has been taken ** I often use the Duplicator plugin for this purpose: http://wordpress.org/plugins/duplicator/ NOTE: If access to the live site is not possible and the staging site does not exist please provide me with a duplicator package created with the duplicator plugin. Thank you, |
July 24, 2025 at 8:17 pm #17269193 | |
Bobby WPML Supporter since 04/2015
Languages: English (English ) Timezone: America/Los_Angeles (GMT-07:00) |
Thank you for the access details! I believe the issue here is happening because the slug is /india for multiple treatment pages, therefore WPML does a match which overrules the 301 redirect and points it to the page it's pointing to. The issue seems related to the following one, please review my colleagues response and let me know your results. Adjusting the URL slightly would resolve the redirection issues. https://wpml.org/forums/topic/wpml-overruling-rankmath-redirects/ In the meantime I am going to further consult with our team about this and update you from our side as well. |
July 25, 2025 at 6:01 am #17269939 | |
abdul-alimB |
Dear Bobby, Thanks for your response. |
July 25, 2025 at 7:29 pm #17272006 | |
Bobby WPML Supporter since 04/2015
Languages: English (English ) Timezone: America/Los_Angeles (GMT-07:00) |
Thanks for your message, and I completely understand your concern. We’re looking into whether a rule is indeed overriding the 301 redirect and are doing our best to find a solution that doesn’t require any URL changes. The case has been escalated to our second-tier team, and I’ll update you as soon as we hear back. |
July 26, 2025 at 6:20 am #17272258 | |
abdul-alimB |
Dear Bobby, Thank you so much for understanding the concern. I hope the team finds a solution soon that avoids the need for changing thousands of urls. |
July 28, 2025 at 7:01 am #17273790 | |
abdul-alimB |
Dear Team, I hope you had a good weekend! |
July 29, 2025 at 7:55 am #17277377 | |
abdul-alimB |
Hello! No response!? |
July 29, 2025 at 3:25 pm #17279699 | |
Lucas Vidal de Andrade WPML Supporter since 11/2023
Languages: English (English ) Spanish (Español ) German (Deutsch ) Portuguese (Brazil) (Português ) Timezone: America/Sao_Paulo (GMT-03:00) |
Hey there, Thank you for waiting. Bobby is away for a few days, so I'm handling this ticket 🙂 Our second tier is analyzing the issue yest, as it seems to be causing due to the lifecycle (timing) of the code. Meanwhile, they provided a workaround that we want to please test. Make sure to have a full website backup, and add the code below to your functions.php file: add_filter( 'wpml_is_redirected', function( $redirect, $post_id, $q ) { if ($q->query_vars["p"] && $q->query["post_type"] == "treatments"){ $permalink = get_permalink($post_id); if (strpos($q->query["name"], $permalink)){ return $redirect; } else { return false; } } return $redirect; }, 10, 3 ); Please apply the solution and let me know what are your results. Thank you for your cooperation on this matter. |
July 29, 2025 at 6:24 pm #17280090 | |
abdul-alimB |
Dear Lucas, Thanks for the hardwork, much appreciated! |
July 30, 2025 at 1:57 pm #17282467 | |
Lucas Vidal de Andrade WPML Supporter since 11/2023
Languages: English (English ) Spanish (Español ) German (Deutsch ) Portuguese (Brazil) (Português ) Timezone: America/Sao_Paulo (GMT-03:00) |
Hello, The code was implemented on your live website. Now: hidden link redirects only to: (before implementing the code, there was an additional redirect to hidden link) I'm making some last checks with second tier support. |
July 30, 2025 at 6:21 pm #17283076 | |
abdul-alimB |
Dear Lucas, Thanks a tonne! 🙂 This is such a big relief! Truly grateful to you! |