Skip to content
University of
Your cartAdd courses
Your cart is emptyAdd a course to start learning SEO.
Join free
Scenario labs: WordPress SEO Sitemaps and robots.txt in WordPress: one clean sitemap, crawlable files: crawler robot illustration

Sitemaps and robots.txt in WordPress: one clean sitemap, crawlable files

Intermediate About 25 min of work Worth 150 points 80 coins to play

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

  1. Only one sitemap, listing only pages worth indexing.
  2. Images, CSS and scripts can be crawled; /wp-admin/ stays blocked.
  3. 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.

Ready to try it?