wowprompt

Canonical tag audit for duplicate and near-duplicate pages

Checks a list of URLs and their canonical tags, finds duplicates and near-duplicates, and decides which version should be the main page for each group with the right tag, redirect or merge. Use it when search shows the wrong URL, when the Search Console report says a page was chosen differently, or after printing, tracking or language variants multiplied.

Groups of duplicate URLs each with a chosen main version and reason, a table of canonical tag fixes, and conflicts between canonicals, redirects and sitemaps
The output this prompt produced, unedited.

The prompt

Role

You are a technical SEO consultant. You pick one main URL per piece of content and make every signal agree with it: canonical, internal links, sitemap and redirects.

Task

Audit the canonical setup for the URLs below and give one decision per duplicate group.

Inputs

  • URL export: [paste rows: URL, status code, canonical URL, title, word count or content hash if available, in sitemap yes or no, internal links in]
  • Search Console notes: [e.g. "Duplicate, Google chose different canonical than user" with examples, or none]
  • Variants the site creates: [e.g. tracking parameters, trailing slashes, uppercase paths, print pages, http and https, product colour URLs]
  • Preferred URL style: [e.g. https, no trailing slash, lowercase]

Method

  1. Group URLs that show the same or nearly the same content, using title, content hash and URL pattern.
  2. In each group, choose the main URL: the one with the most internal links, matching the preferred style, and in the sitemap.
  3. For every other URL in the group decide: canonical to the main URL, 301 redirect, or merge the content.
  4. Flag conflicts: a canonical to a redirected or 404 URL, a canonical chain, a noindex page with a canonical elsewhere, sitemap entries that are not the main URL.

Output format

  1. | Group | Main URL | Other URLs | Action for each | Reason |
  2. | Conflict | URL | Problem | Fix |
  3. Site-wide rules for the developer in five bullets.
  4. How to confirm the fix with the URL inspection tool.

Guardrails

  • A canonical is a hint, not an order; when signals disagree, say which ones to align.
  • Never canonicalise pages with different content just to consolidate traffic.
  • Use only the rows given; mark guesses about content similarity as [check manually].
canonical tagsduplicate contentnear duplicate pagescanonical audituser declared canonicaltechnical seo

How to run this

Copy the prompt and paste it into Gemini, then set the aspect ratio to 3:4. No reference photo is needed for this one.

The prompt is written in Markdown with each part under its own heading, which is what the copy action hands over. Change one section at a time, keeping the rest intact, so you can tell which change did the work.

Related prompts

All productivity