Hello,
Unfortunately, the Rank Math Redirection module doesn’t yet support redirecting URLs with query parameters. Our dev team is working on adding this, and hopefully should be added soon. You can check our updates at this link: https://rankmath.com/changelog/
In the meantime, you may need to use .htaccess redirects or a separate plugin that allows this.
I hope that helps. Thank you, and please don’t hesitate to contact us if you need further assistance.
Hi,
OK, thanks for this and it’s good to know.
In that case could you suggest a redirect I could try in .htaccess?
Thanks,
Darren
Hello,
A regex should look similar to the one below (untested):
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^boats-for-sale/used/1/(.*) http://domain.com/new-boats/ [R=301,L]
</IfModule>
Based on the following stackoverflow thread: https://stackoverflow.com/questions/10183022/how-can-i-redirect-all-files-in-one-directory-to-another-directory
Please note that the success of rewrite may depend on existing rewrites on your setup, so beyond the reference to a basic redirect, we can’t help much as it may involve customization which is beyond the scope of our support.
Hope that helps. Please let us know if you have questions.
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.