-
We’ve been using RankMath for several years and recently noticed an issue with the sitemap URL shown in the robots.txt editor.
On our staging site, the sitemap URL shown in RankMath > General Settings > Edit robots.txt still points to an old domain (archframing.com) that we stopped using 5–6 years ago — well before we began using RankMath.
We manually corrected the robots.txt file using FileZilla, and the correct sitemap URL (https://arch-design.com/sitemap_index.xml) now appears on our live site. However, the staging site still shows the outdated URL (http://archframing.com/sitemap_index.xml) in the robots.txt editor, even after clearing all caches.
We’ll attach screenshots of the robots.txt screen from both environments (live and staging) for reference.
Can you advise:
Why the staging site is still showing the outdated sitemap URL?
How we can update or reset it within RankMath so it reflects the correct URL (arch-design.com) on staging as well?
A screenshot of the robots.txt file from the RankMath view on our staging site is here: https://drive.google.com/file/d/1mpxSOCBGYlJAfzLFhOcbrujUJIZbWbNu/view?usp=sharing
A screenshot of the robots.txt file from the RankMath view on our live environment is here: https://drive.google.com/file/d/1oYN3LiTOHnMPrP4uJDF521uZDBWxDtsg/view?usp=sharing
The ticket ‘Incorrect Sitemap URL Showing in robots.txt on Staging Site’ is closed to new replies.