Sam reported that four pages on aguiarinjurylawyers.com were not indexed in Google Search Console due to "redirect error." The goal was to diagnose the redirect behavior and fix it so Googlebot could crawl and index the pages normally.
The four affected URLs:
All four URLs return an HTTP 301 redirect that points to the same URL (a self-redirect loop). The response header x-redirect-by: Rank Math confirms the Rank Math SEO plugin's Redirections module is the source. Each page redirects to itself, creating an infinite loop that Googlebot reports as a redirect error.
The posts themselves are published with correct slugs. The problem is orphaned redirect rules in Rank Math's Redirections module database table (wp_rank_math_redirections).
Used /wp-json/rankmath/v1/updateRedirection with {"objectID": post_id, "hasRedirect": false}. API returned success but did not fix the issue. This endpoint only manages per-post redirects stored in post meta, not the Redirections module table.
Changed each slug to a temp value, deleted per-post redirect, restored original slug, deleted again. API steps all succeeded but the module table entries were untouched.
Tried clearing redirect-related meta fields. None existed on these posts, confirming the redirects live in the module table.
Tried various action values. All returned errors.