Regex

#370231
  • Resolved Marcus Downey
    Rank Math free

    So I noticed that redirections are broken with the latest version and it is causing my traffic to slump as I use a regex sitewide with other individual updates.

    AHREF picked up on this also – it’s quite serious.

    I have read that a rollback will resolve this but then a further request for a trailing slash.

    How does one do that for 106 redirects and a regex?

    I think this needs resolving asap with a repaid bugfix release on your side.

Viewing 13 replies - 1 through 13 (of 13 total)
  • Prabhat
    Rank Math agency

    Hello,

    Thank you for contacting the support and we regret the inconvenience caused.

    We have identified an issue in the recent update of the plugin with some redirections on client websites and we have already reported this to the dev team and we will fix it in the future update of the plugin.

    You can temporarily roll back to version 1.0.84 as the regex redirections are working properly in that version.

    Here’s a guide on how to roll back the plugin: https://rankmath.com/kb/version-control/#native-rollback

    but then a further request for a trailing slash.

    How does one do that for 106 redirects and a regex?

    I’m not sure If I fully understand your question here, however, rolling back to the previous version should not cause any issues with the created redirections.

    Hope this helps.

    Thank you.

    1.0.84 is almost a month ago which means regex on my site has not been working for potentially 4 weeks which explains the really poor March financial results.

    After rolling back to the suggested version it works and traffic is back up but the damage this caused is very disappointing.

    Honestly, you guys have such erratic coding and beta release QC procedures. You need to tighten it up and this should be a hotfix, not something at the back of the queue.

    Hello,

    Please remove any leading slashes from your redirections that are not working with the latest version of the plugin.

    This will make them work correctly.

    Don’t hesitate to get in touch if you have any other questions.

    To be honest I would rather wait for the official and working firmware fix to the latest version than add trailing slashes to 166 redirects manually.

    This should be an urgent hotfix rather than the back of the queue for later releases.

    Hello,

    We will inform you once we release an update to fix this issue. You may also keep an eye on our changelog for further updates with regard to this issue.

    We appreciate your time and patience on this one.

    In the meantime, please don’t hesitate to contact us again if you need our assistance with anything else.

    Any update on when you plan to fix this?

    When Yoast had a major error for attachment URLs they issue an immediate alert to all users and how to fix it. I suggest you do this also as those with RegEx will have multiple 404’s and possible rankings issues as a result.

    Hello,

    We have discussed this with the dev team and there won’t be an update on this matter.

    The Regex redirections will need to be stripped of the leading slash as we indicated earlier so that they work correctly.

    Don’t hesitate to get in touch if you have any other questions.

    So you are asking us to fix it ourselves?

    WHy cant you fix the bug?

    Hello,

    We do not consider this as a bug, in fact, this change fixes a bug in the plugin that was present before the change. Therefore, we will not change this behaviour.

    You can make a small change in the plugin code to make it work like it did in the past. For this, please open the file seo-by-rank-math/includes/modules/redirections/class-db.php and find line number 236:

    return 'regex' === $comparison ? ( '@' . stripslashes( $pattern ) . '@' ) : $pattern;

    Replace it with the following line:

    return 'regex' === $comparison ? ( '@' . stripslashes( ltrim( $pattern, '/' ) ) . '@' ) : $pattern;

    After this change, the regex redirections should work like before. Please note that if you update the plugin, you will lose the modification, and you may have to redo it.

    Hope that helps.

    Balazs

    There is a lot wrong with your statement.

    “We do not consider this as a bug, in fact, this change fixes a bug in the plugin that was present before the change. Therefore, we will not change this behaviour.”

    Why did you not alert anyone to this problem with immediate advice on how to correct the error beforehand?

    Why have you not alerted everyone to check all their redirections for the manual fix since your new version cannot correct the ‘old bug’?

    How long was this bug there for? months, days, years?

    Let me remind you that by failing to inform people of this issue many sites are at risk in their ranking.

    Let me also encourage you to read all your previous co-worker support posts stating they are aware of the bug and to wait for the next update meaning this is a change of PR in how to manage a damaging correction that you neither advised, alerted, or felt worth managing in the updates.

    If Yoast were kind enough to update everyone with advice on the thin content media attachment issue a few years back I think Rank Math should swallow their pride, stop brushing it under the carpet and communicate to everyone that if you are affected by this then here is what to do.

    I will not be doing hotfixes myself only to have to redo them on every upgrade.

    I have emailed Bhanu and waiting for his reply also.

    Hello,

    I have discussed this with the dev team, and we will most probably include a new filter hook in an upcoming update, and by using that you will be able to bring back the old behaviour, where the leading slash is required for regex-based redirections.

    We will leave another reply here when this new version is released.

    Hope that helps.

    Thanks Balazs.

    Hello,

    Thank you for your patience.

    Just a quick update that we have fixed this issue on one of our recent releases.

    Please update Rank Math & all other plugins, themes and WordPress to the latest version.

    The issue should be fixed.

    If not, please feel free to open a support topic or reply to this message and we will be more than happy to assist.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 13 replies - 1 through 13 (of 13 total)

The ticket ‘Regex’ is closed to new replies.