Hello,
We apologize for the issue you are facing with the 301 redirects not appearing in Rank Math SEO. It can be frustrating when things don’t work as expected.
To troubleshoot this issue, please ensure that you have enabled the Redirections module in Rank Math. You can do this by going to Rank Math SEO → Dashboard and checking if the Redirections module is activated. If it is not, enable it and then check again in Rank Math SEO → Redirections to see if your URLs appear there.
If the URLs still do not show up, it might be helpful to check if they were set up through a different method or plugin.
If you continue to experience difficulties, please reply to this ticket, and a human agent from the Rank Math Support team will assist you further.
Thank you for raising this concern!
Hello,
Thank you for contacting us and sorry for any inconvenience that might have been caused due to that.
Could you please confirm if the redirection is occurring because of the Rank Math plugin? You can use any tool like https://httpstatus.io/ and check the X-Redirected-By to confirm where the redirection is coming from.
However, you can also share the affected URLs with us so that we can check them as well.
Let us know how it goes. Looking forward to helping you.
Thank you.
Hello,
That means the URLs are getting redirected by WordPress. You can check on your .htaccess file and see if there are any redirections set for these URLs.
Also, it is possible the redirection is happening due to WordPress’s template redirection which redirects the incorrect URLs to a similar slug. You can try to use the following filter on your site and see if that works for you:
remove_action( 'template_redirect', 'redirect_canonical' );
Here’s how you can add 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.
Thank you.
I put the code into function and it works. Thank for your help
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.