Technical SEO

Plan a sitemap around approved public pages

Build a sitemap from the public URLs you actually want discovered, with accurate modification information. Keep manuscripts, private account pages and utility endpoints out of the list. A sitemap is a discovery aid, not proof that an article has been crawled, indexed or ranked.

Illustration of technical tools, gears and chart bars

A worked example

A fictional site update has an active catalog, a private cart and an unfinished policy page. The launch team should not include all three merely because their routes exist. The sitemap decision follows the approved public indexing plan, while a human-readable page directory can still help visitors navigate useful result pages.

A practical checklist

  1. Separate route existence from indexing approval. Create an explicit inventory of public pages, their canonical destinations and their launch quality.
  2. Generate entries from that inventory or published content records. Record real substantive modification dates rather than stamping every URL with the current date on each request.
  3. Check sample URLs and the submitted file on the final host. Monitor discovery and indexing through appropriate tools instead of interpreting submission as completion.

1. XML sitemap index hygiene and crawl efficiency

An XML sitemap is a critical discovery protocol that informs search engine crawlers which pages are authoritative, permanent, and eligible for public indexing. Including 301 redirects, 404 errors, or noindexed utility pages wastes crawler budget and triggers coverage warnings in Google Search Console. A production sitemap should strictly contain HTTP 200 OK canonical destinations.

2. Sitemap inclusion vs exclusion decision matrix

Use this operational policy to determine which routes belong in your public sitemap:

2. Sitemap inclusion vs exclusion decision matrix comparison
Route CategorySitemap PolicyTechnical ReasoningVerification Check
Canonical Blog & GuidesInclude (Priority 0.8)Core editorial content intended for organic discoverySelf-referencing canonical header and 200 OK
Marketplace Directory PagesInclude (Priority 0.9)Primary commercial landing and filter hubsConfirmed live inventory and unique metadata
Customer Account & CartExclude entirelyPrivate user sessions behind authenticationRobots meta noindex, nofollow applied
301 Redirect Source URLsExclude entirelyRedirects waste crawl budget and cause sitemap errorsConfirm destination URL is listed instead

3. Dynamic Next.js App Router sitemap generation

Below is a clean Next.js App Router sitemap implementation that dynamically aggregates approved editorial and marketplace routes while filtering out manuscripts and utility pages:

// app/sitemap.ts
import type { MetadataRoute } from "next";
import { buyerGuides } from "@/lib/site/buyer-guides";
import { blogLibrary } from "@/lib/blog/library";

const origin = "https://nameretailer.com";

export default function sitemap(): MetadataRoute.Sitemap {
  const guides = buyerGuides
    .filter((g) => g.approved)
    .map((g) => ({
      url: `${origin}/guides/${g.slug}/`,
      lastModified: new Date(g.updatedAt),
      changeFrequency: "weekly" as const,
      priority: 0.8,
    }));

  const blogs = blogLibrary.map((b) => ({
    url: `${origin}/blog/${b.slug}/`,
    lastModified: new Date("2026-10-19"),
    changeFrequency: "weekly" as const,
    priority: 0.7,
  }));

  return [
    { url: `${origin}/`, lastModified: new Date(), changeFrequency: "daily", priority: 1.0 },
    ...guides,
    ...blogs,
  ];
}

4. Sitemap maintenance checklist

Verify these technical criteria on your production sitemap feed:

  • Ensure every URL in the sitemap returns HTTP status 200 OK.
  • Confirm that every sitemap URL declares a self-referencing canonical tag matching the exact URL.
  • Check that sitemap files stay well under the 50,000 URL and 50MB uncompressed limit.
  • Verify the sitemap URL is declared cleanly at the bottom of your production robots.txt file.

What to avoid

Avoid listing every filter combination or copying private route names into the sitemap. Do not enable production discovery for a result simply because more articles were added. Confirm sitemap URLs and redirect destinations against the current deployed content.

Related guides and tools

Frequently asked questions

Practical answers to common technical and editorial questions.

Is a page directory the same as an XML sitemap?

No. A page directory serves visitors; an XML sitemap supplies discovery information to crawlers.

Does submitting an XML sitemap guarantee that all URLs will be indexed?

No. A sitemap assists search engine discovery, but indexing decisions depend entirely on content quality, technical accessibility, and search intent satisfaction.

How often should dynamic sitemaps update in Next.js?

Configure your sitemap route to recalculate whenever new content is published or during scheduled build cycles to ensure timestamps reflect genuine updates.

Documentation & Standards

Sources and further reading

Apply this guidance to your publication research

Ready to plan your publication campaign?

Compare publications across DA, DR, traffic estimates and listed placement prices, or explore our free technical SEO tools.