Sitemaps and robots.txt in WordPress: one clean sitemap, crawlable files
Two sitemaps are live, attachment and author pages are listed, and robots.txt blocks the images and theme files. Fix the sitemap settings and robots.txt.
Create a free account to start this lab
You get your own copy of the practice site, a code editor, checks against real crawler rules and a simulated search result.
What you will fix
Rise Bakery is a bakery and cafe in Faisalabad. WordPress core prints its own sitemap at /wp-sitemap.xml and the SEO plugin prints another at /sitemap.xml, so search engines get two lists. The plugin lists a media attachment page and an author archive with one post. robots.txt blocks /wp-content/, which holds every image, the theme CSS and scripts, so Google cannot see the pages as visitors do, and it has no Sitemap line.
Goals
- Only one sitemap, listing only pages worth indexing.
- Images, CSS and scripts can be crawled; /wp-admin/ stays blocked.
- robots.txt points to the sitemap.
The lab checks each goal for you. Hints lower the points a lab is worth, and showing the full solution makes it worth 0.