Hello,
We apologize for the issue you are facing with the redirection not working when there is a query string in the URL. Since you mentioned that you have turned off the Ignore Query Parameters option in the 404 settings, it should ideally allow the 404 monitor to log errors with query strings.
However, for handling redirects with query strings effectively, you may need to set up parameterized redirects. This feature is available in the PRO version of Rank Math. Here’s a brief overview of how to set up parameterized redirects:
- Go to Rank Math SEO in your WordPress Admin dashboard.
- Navigate to Redirections.
- Add the parameterized URL as the Source URL (e.g.,
/your-page?p=508) and specify the Destination URL where you want to redirect users.
- Click on the Update Redirection button.
For more detailed guidance, you can refer to this tutorial on setting up redirections.
If you are looking for comprehensive assistance or if you want to ensure your setup is fully correct and adheres to the latest SEO standards, we recommend considering our professional setup service, which requires a PRO subscription. You can find more information about this service here.
If you continue to experience issues, please reply to this ticket with your site URL so that a human agent can assist you further.
Thank you for raising this concern!
Sources:
How to Set Up Redirections » Rank Math
This is an automated reply from Rank Math Support Bot. Your ticket has been assigned to a human agent and we will get back to you shortly.
Hello,
Thank you for contacting us and bringing your concern to our attention.
Please try to use the following filter code on your website to redirect the URLs properly with the query parameter:
add_filter( 'rank_math/redirection/add_query_string', '__return_false' );
Here’s how you can add a filter/hook to your WordPress site: https://rankmath.com/kb/wordpress-hooks-actions-filters/
Let us know how it goes. Looking forward to helping you.