Sub topic 12
Canonical URLs, Sitemap, and Crawlability
Prerequisites and goals
This chapter assumes you know basic HTML, URLs, and how a press release is published. You will learn how search engine crawlers find newsroom pages, how canonical URLs prevent duplicate indexing, and how a sitemap supports discovery.
A crawler is a program that visits links and reads pages for a search engine. Crawlability describes how easily crawlers can reach and understand your pages. A page can be crawlable without appearing in search results, so also check whether you accidentally block indexing.
Choose stable, canonical URLs
A canonical URL is the preferred address for a page when several URLs show the same content. For example, these addresses might display one release:
https://example.com/newsroom/widget-2https://www.example.com/newsroom/widget-2https://example.com/newsroom/widget-2?source=homepage
Choose one public version and use it everywhere. Keep the URL readable, stable, and specific. Avoid changing a release URL when its headline changes.
Add a canonical link in the page's <head>:
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Acme launches Widget 2 | Acme Newsroom</title>
<link rel="canonical"
href="https://example.com/newsroom/acme-launches-widget-2">
</head>
<body>
<h1>Acme launches Widget 2</h1>
</body>
</html>A canonical link is a hint, not a command. The page should also contain the same main content, title, and organization details that the canonical URL represents. Redirect duplicate URLs when possible, especially after a URL migration.
Publish a sitemap
A sitemap is an XML file containing URLs that you want search engines to discover. It does not guarantee indexing, and it should not contain private pages, deleted pages, or URLs blocked from crawling.
For a small newsroom, /sitemap.xml can look like this:
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://example.com/newsroom</loc>
<lastmod>2026-03-12</lastmod>
</url>
<url>
<loc>https://example.com/newsroom/acme-launches-widget-2</loc>
<lastmod>2026-03-12</lastmod>
</url>
</urlset>Use the exact canonical URL in each <loc> element. Update <lastmod> when the page's meaningful content changes. Do not update it merely because an automated job ran.
Submit the sitemap through your search engine's webmaster tools. You can also declare it in robots.txt:
User-agent: *
Disallow: /admin/
Sitemap: https://example.com/sitemap.xmlCheck the crawl path
Crawlers commonly discover a release through this path:
newsroom index → release link → release pageMake sure the newsroom index links to every current release. Do not rely only on search, JavaScript click handlers, or a sitemap. Use normal HTML links with descriptive text.
Check for these common problems:
| Problem | Effect | Better practice |
|---|---|---|
| Canonical points to another page | The release may be treated as a duplicate | Point to its own stable URL |
| Sitemap contains redirects | Crawlers must follow unnecessary steps | List final `200` URLs |
| `robots.txt` blocks `/newsroom/` | Crawlers cannot fetch releases | Block only private paths |
| Release has no internal link | Discovery depends on the sitemap | Link it from the newsroom index |
| `noindex` is left on a public page | The page may stay out of search results | Remove it when publishing |
Exercise
Exercise
A release page is available at /newsroom/widget-2?utm_source=home, but its preferred public address is https://example.com/newsroom/widget-2. What should the page's canonical link and sitemap entry use?
Show answer
Both should use https://example.com/newsroom/widget-2, without the tracking query string. The newsroom index should also link directly to that URL.