Skip to content
University of
Your cartAdd courses
Your cart is emptyAdd a course to start learning SEO.
Join free

Technical SEO practice labs for robots.txt, canonicals, and crawl problems

A robots.txt file and a canonical tag drawn as two simple panels, on a flat blue background

Technical SEO is easy to read about and hard to do. You can memorize that robots.txt controls crawling and that a canonical tag is a signal, and still miss the one line that is hiding a client's service pages. The only way to get good at it is to meet the problems on real pages and fix them.

That's what the Technical SEO topic in the Virtual Lab is for. It has eight labs. In each one you get a brief, a list of goals, and your own small website on a fictional .test domain. You fix the site, press Check my work, and the server checks the site as a crawler receives it: robots.txt, redirects, canonicals, noindex, sitemap discovery, and so on. It never checks typed answers. A lab passes only when every check passes on your own copy.

This guide goes through the labs, explains the Google rule behind each one with a link to Google's documentation, and gives you a sense of how to approach them without giving away the fixes.

Who the technical labs are for

These labs suit intermediate learners who already know what a title tag and a sitemap are, and developers who want to see SEO problems from the crawler's side. If you're starting from zero, the web basics labs on the SEO from zero learning path cover robots.txt, your first XML sitemap, and noindex and canonical basics first.

Of the eight technical labs, one is beginner, four are intermediate, and three are advanced, counting the capstone. Estimated times run from 20 to 50 minutes. Like every lab, each one has a coin entry fee paid at Start and a larger coin reward, and your first 3 starts on the platform are free.

The tools you work with

The lab workspace has a browser window over your saved site and inspector panels for URL inspection, Network, View source, SEO audit, robots.txt, Sitemap, and Page indexing. Depending on the lab, you edit pages, robots.txt, the sitemap, or redirects. A Search results panel shows simulated results for the lab's keyword and updates each time you check your work. The other sites in it are fictional and the ranking is a teaching model, not Google, but it shows you the effect of a fix in a way real search can't in a few minutes.

Starting simple: menu pages missing from search

The beginner lab, The menu pages are missing from search, is set at a bakery whose menu pages never appear in search. The owner wants the menu and every menu item page found, while the cart and checkout stay out of search and a privacy page stays out on purpose. You have the pages, robots.txt and sitemap.xml, and the brief asks you to change only what is needed.

The lesson here is restraint. A real site often has pages that should stay out of search, and a good fix opens the right pages without exposing the wrong ones.

Robots.txt groups and longest match

The advanced lab Crawl rules Googlebot never follows puts you in an online store whose robots.txt looks strict. Yet server logs show Googlebot spending its visits on sorted copies of a category and on addresses with session IDs, while a popular guide has been blocked.

Site files tab of a Virtual Lab showing robots.txt copied from a staging server, ready to edit beside the client brief
In the robots.txt labs you edit the file itself in the Site files tab.

Two rules from Google's documentation sit behind this lab. First, a crawler follows only the group for the most specific user agent that matches it; the other groups are ignored, and a specific group isn't merged with the general one. Second, when rules conflict, the most specific rule by path length wins, and when an allow and a disallow are equally specific, Google uses the less restrictive one (Google: how Google interprets robots.txt). Once you understand those two rules, files that "look strict" start to read very differently.

Noindex blocked by robots

In Archive pages that will not leave search, a blog's archive and internal search pages are still in Google months after someone added noindex. The previous SEO also blocked them in robots.txt "to be safe", and nothing has dropped out since.

URL inspection in a lab warning that robots.txt blocks crawling, so a noindex rule on the page cannot be read
The inspection panel explains why a noindex behind a robots.txt block is never seen.

This is one of the most common technical mistakes there is. Google explains that if robots.txt blocks a page, its crawler "will never see the noindex rule", and the page can still appear in results, for example when other pages link to it (Google: block indexing with noindex). Robots.txt controls crawling, not indexing (Google: introduction to robots.txt). The lab asks you to get the archives out while articles stay in and the admin area stays closed to crawlers.

Canonicals pointing the wrong way

Service pages hidden by their own canonical tags is set at a cleaning company whose service pages vanished from search after a theme update. Search Console reports some pages as an alternate page with a proper canonical tag and others as duplicates where Google chose a different canonical. Your job is to find every canonical that sends Google somewhere else, so each main page is the version that appears in search, and a printer-friendly guide stops competing with the real one.

Simulated results in a canonical lab warning that the best page for the keyword cannot be indexed, so another shows
A wrong canonical in action: the simulated results show the wrong page.

Google describes rel canonical as a strong signal, not the only one. Redirects are also a strong signal, and listing a page in the sitemap is a weak one. Google recommends a self-referencing canonical on the preferred page and absolute URLs rather than relative paths (Google: consolidate duplicate URLs). The scenario starts with a theme update, which is a good reminder to check canonicals after any template change.

Links crawlers can't follow

The advanced lab A new site where only the homepage gets indexed features a design studio whose new site works in a browser, yet three months after launch only the homepage is indexed. The developer says everything works when you click it. The goal is to make the site crawlable without running scripts, so every section, older journal posts, and the approved About text can be found.

Google can reliably crawl standard a elements with an href that holds a real URL. Links made from elements without a real href, onclick-only links, and javascript: URLs aren't recommended (Google: make your links crawlable). For the wider picture of how Google processes JavaScript, see Google's JavaScript SEO basics. This lab is especially useful for developers, because it shows the gap between "it works for users" and "it works for crawlers".

Sitemaps nobody checked

In A sitemap nobody has checked in a year, a tour company has published two new tours that aren't in the menu and haven't been found. Its sitemap comes from an old plugin: every entry claims it changed today and has priority 1.0. The client wants an honest list of the pages that belong in search, and a sitemap search engines can find without being told by hand.

Google says it uses lastmod only when it's consistently and verifiably accurate, and that it ignores priority and changefreq. You can point crawlers to a sitemap with a Sitemap line in robots.txt (Google: build and submit a sitemap). The lab teaches you to treat a sitemap as a list you're responsible for, not a file a plugin makes for you.

After the maintenance weekend

A related intermediate lab, The site is back, but search has not noticed, follows an online grocer after a server move. The shop works for customers, but Search Console shows pages excluded by noindex, server errors, and a homepage reported as a redirect. The lab asks you to find what the maintenance plugin left behind, including the parts you can't see in the page itself. The inspector panels earn their place here, because some of the problems live in responses rather than in the HTML.

The capstone lab

The topic ends with Capstone: the school site that hides its admissions pages, an advanced lab estimated at 50 minutes. Admissions at a private school open in three weeks, and parents can't find the application form or the fees page on Google. The goals cover everything in this guide at once: Googlebot can crawl every public page, the key pages can be indexed under their own addresses, an old address reaches the application form in one permanent redirect, the sitemap lists every indexable page and nothing else, and every public page has a link pointing to it and a title of its own.

Preview of the technical capstone lab about a school site that hides its admissions pages, with goals and lab facts
The technical capstone combines several fixes on one site.

It currently pays the largest reward of the technical labs, 230 coins, with an entry fee of 161. Fees and rewards can be changed by the admin, so treat those as current examples.

How to get the most from these labs

Read the brief twice and write the goals down before you touch anything. Use URL inspection and the robots.txt and Sitemap panels to confirm what a crawler sees, instead of trusting what the page looks like. Make one change at a time and check your work, so you know which change fixed which goal.

Hints are available if you're stuck. Each hint costs a share of the lab's points and 5 percent of its coin reward, and opening the full solution makes both the score and the reward 0. Resetting the site doesn't give hint points back. Labs are timed, like CTF rooms, so start when you have the estimated time free and a laptop in front of you.

If you want to drill the theory before a lab, the Technical SEO category of the SEO CTF has rooms such as Robots.txt and Meta Robots and Canonicalization. A good pattern is a room first, for the rules, and a lab second, for the hands-on fix. The guide to what an SEO practice lab is explains the Virtual Lab in more depth.

Frequently asked questions

No coding project is needed. You edit pages, robots.txt, the sitemap, or redirects in the lab's own tools, though reading basic HTML helps a lot.

No. The other sites are fictional and the ranking is a teaching model. It updates each time you press Check my work, so you can see the effect of a fix.

The server checks your own practice site as a crawler receives it, such as robots.txt, canonicals, noindex, and sitemap discovery. A lab passes only when every check passes.

Google says a crawler blocked by robots.txt never sees the noindex rule, so the page can stay in search. The page must be crawlable for noindex to be read.

Start with the beginner lab about menu pages missing from search, then the intermediate labs, and keep the capstone for last.

0 Comments

Leave a comment