Hello,
I’m sorry to hear that you’re experiencing issues with the redirections on your website. I understand that you’ve set up the regex redirects to remove certain IDs from the URLs, but it seems that the redirections are not working as expected.
Based on the screenshots and the URLs you’ve provided, it looks like you’ve set up the regex redirects correctly. However, it’s possible that there might be an issue with the configuration or the way the redirects are being processed.
To further investigate and resolve this issue, I recommend checking the following:
- Ensure that the regex pattern and destination URL are correctly configured in the Rank Math plugin.
- Verify that there are no conflicting redirects or rules that might be affecting the intended redirections.
- Check for any caching plugins or server-side caching that might be interfering with the redirects.
If you’ve already checked these aspects and are still facing issues, please provide more details about your setup, including any other relevant plugins or configurations that might be affecting the redirects.
If you need further assistance, please feel free to reply, and we’ll be happy to help you troubleshoot this issue.
Thank you for bringing this to our attention.
Sources:
Solving Redirection Issues Using Rank Math SEO Plugin » Rank Math
How to Use Regex Redirects in Rank Math » Rank Math
Hello,
Thank you for reaching out to Rank Math with your query about redirecting URLs using Regex in Rank Math. Based on the screenshots you’ve provided and the URLs you’re trying to redirect, it seems like the issue might be with the way the Regex pattern is set up.
The pattern you’ve used, news-and-media/blog/2022/11/29/(.*)
, should technically capture the URLs you’ve listed, but it’s specific to the date 2022/11/29
. To make it more general and applicable to all dates, you should modify the pattern to
news-and-media/blog/([0-9]{4}/[0-9]{2}/[0-9]{2})/(.*)
This pattern will match any date in the format of news-and-media/blog/year/month/day.
Also, ensure that the ‘Exact’ and ‘Regex’ options are appropriately set in the redirect settings. If it’s set to ‘Exact’, the redirect will only occur if the URL matches exactly, which is not what you want in this case. You should use the ‘Regex’ option for these types of dynamic URLs.
If you’re still facing issues, please provide additional details about how you’ve set up the redirect, and we’ll be happy to assist further.
Best regards,
Hi again,
I just updated like that but still same not fixed.
Check screenshot: https://pasteboard.co/4uNOBAbTk6Iy.png
So I have website with 8 languages (with domains) so I have used regex to remove extra id like that and exact for url’s who are different from old to new one but without extra id.
I can gave u access if needed to know exactly where is a problem!?
For me is very important to fix that.
Thank you
Hello,
Please try to set the destination URL as the following:
https://www.salesupply.nl/$2/
Once done, please head over to your WordPress dashboard > Settings > Permalinks, and hit the “Save Changes” button (without making any changes) to clear the permalink cache and see if that works for you.
If the issue still persists, then we might need to take a closer look at the settings. Please edit the first post on this ticket and include your WordPress & FTP logins in the designated Sensitive Data section.
Please do take a complete backup of your website before sharing the information with us.

It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:
https://wordpress.org/plugins/temporary-login-without-password/
You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):
https://wordpress.org/plugins/wp-security-audit-log/
Let us know how it goes. Looking forward to helping you.
Thank you.
Hi again, I just tried that option but still same issue for these 6 lnks.
Im going to include wordpress logins to sensitive data.
Just to be clear there are over 800 urls redirect from 8 languages with different domains. For NL language domain are about 100 urls and only these 6 links doesnt work.
Thanks
Hello,
We’ve checked your website and found that the issue was occurring because of the Really Simple SSL plugin you’re using on your website. However, we’ve added the following filter on your Code Snippet plugin and now the redirections are working properly without any issue.
add_action( 'wp', function () {
global $wp;
if ( ! empty( $wp->query_vars['do_not_redirect'] ) ) {
if ( class_exists( 'RankMath\Helper' ) ) {
$rank_math_modules = RankMath\Helper::get_module( 'redirections' );
add_action( 'template_redirect', array( $rank_math_modules, 'do_redirection' ), 11 );
}
}
}, 2 );

Hope that helps and please don’t hesitate to let us know if you have any other questions.
Thank you.
Thank you so much it works great.
Have a good day.
Hello,
We are super happy that this resolved your issue. If you have any other questions in the future, know that we are here to help you.
If you don’t mind me asking, could you please leave us a review (if you haven’t already) on https://wordpress.org/support/plugin/seo-by-rank-math/reviews/#new-post about your overall experience with Rank Math? We appreciate your time and patience.
If you do have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.
Thank you.