Date: March 9, 2026
Session span: Single Perplexity Computer session (context summary continued into April 3 for export)
Prior session: "Sitemap Audit: 17 Missing Location Pages + Indexing Submission (March 10, 2026)" in Notion
Sam noticed his XML sitemap at aguiarinjurylawyers.com/sitemap/ looked incomplete after adding many new location pages. He asked for a full audit: identify every missing page, explain why they're missing, submit them all for indexing, identify orphan pages, and flag internal linking issues. He specifically requested: "i definitely would like for you to focus a lot more on internal linking when preparing content. especially if you identify orphan pages or posts."
The session accomplished three major things: (1) a comprehensive sitemap audit comparing all WordPress content against the XML sitemaps, (2) fixing the Highlands orphan page by adding it to the /locations/ parent page, and (3) adding cross-link sections to all 18 new location pages organized by geographic region.
Pulled and analyzed the XML sitemaps via direct fetch:
Cross-referenced against WordPress REST API (wp/v2/pages and wp/v2/posts with per_page=100 pagination):
Results: 57 pages and 5 posts missing from the XML sitemap. The XML sitemap's last modified date was January 12, 2026, nearly two months stale. RankMath's sitemap cache was stuck and not regenerating.
Checked RankMath robots meta on all missing pages using /wp-json/rankmath/v1/getHead?url= endpoint. None have noindex. The issue is purely the stale cache.
The Highlands location page (ID 44325, /locations/highlands/) existed but was not linked from the /locations/ parent page (ID 30757). This made it an orphan page.
Fixed by updating the parent page content via WordPress REST API (POST to /wp-json/wp/v2/pages/30757). Added the Highlands pill link alphabetically between Hazard and Hopkinsville in the city grid. Verified the link renders correctly on the live page.