Hello @dragan30,
Thank you for contacting the support.
Please try setting the redirection rules like this:
Source: bitcoin-hardware-wallet?order=e5625e61-2799-484a-aaf1-7b19675d7142&rsv_bp=MxleF0G7pzrG2rcH&peo=MTy4npgwHEw12esB&num=88fe7eac-34e4-465f-9604-46f311df76c4&page=0.7340593690012602&utm=guang5
Match: Exact
Destination: your-destination-url
This should work fine. We have checked it on our end and it worked.
Let us know if the issue persists on your end. Looking forward to helping you.
Hello @rankmathteam
Unfortunately, it doesn’t help on our end. We have tried this before as well and now again but we’re still facing 404.
Any other suggestions?
Hello @rankmathteam,
Please ensure that you are using the latest version of Rank Math plugin. If not yet, please do update them. You may refer to our changelog page here: https://rankmath.com/changelog/
Kindly clear your website cache as well after adding the redirection rule.
If that doesn’t work, please share a screenshot of the redirection rule you have created for the 3 types of URLs you have mentioned. This will allow us to reproduce the issue on our end.
Looking forward to helping you.
Hello @rankmathteam
I do use the latest free version v1.0.120.
I did clear the cache as well but the redirects still don’t work. Not even when I’m logged in.
Here is a screenshot of the redirecting rules for the 3 types that doesn’t work, all set with “exact” as you mentioned before:
https://prnt.sc/WYqL81mJr5vo
Thanks for helping me in this.
Hello @dragan30,
This could be caused by the fact that we append the query string to the redirections automatically and your source URL contains those.
Please try adding the following filter on the website and test the redirections once again: https://rankmath.com/kb/filters-hooks-api-developer/#redirect-remove-query
Hope this helps solve your issues.
Don’t hesitate to get in touch if you have any other questions.
Hello @rankmathteam
Thanks, but unfortunately, adding the filter did not solve my problem.
I have created the rank-math.php file under my theme folder (wp-content/themes/theme-name/), and added the following code into this file, but still 404 errors:
<?php
/**
* Disable appending the query string in the redirection URL.
*
* @param int $number
*/
add_filter( 'rank_math/redirection/add_query_string', '__return_false' );
Hello @dragan30,
Sorry for the confusion. The option to redirect parameterized URLs is only available in the PRO version. Since you are using the Free version, it will not work for you. You will have to upgrade to PRO or use some other plugin to redirect those URLs.
Hope that helps. Let us know if you need any other assistance.