canonical-tag

Configure canonical URLs and 301 redirects for duplicate page variants.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/irismaker/ai-agent-skills-hub --skill canonical-tag-irismaker
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: canonical-tag
Source: https://github.com/irismaker/ai-agent-skills-hub/tree/main/skills/canonical-tag
Command: npx skills add https://github.com/irismaker/ai-agent-skills-hub --skill canonical-tag-irismaker

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Canonicalization to consolidate duplicate content and ensure consistent signals across variants (HTTPS vs HTTP, www vs non-www, trailing slashes).

Core Features & Use Cases

  • Canonical URL selection: Establish and publish a single preferred URL for pages with multiple variants.
  • Redirect strategy: Use 301 redirects to the chosen canonical version when possible.
  • Multi-language and signals: Align hreflang with canonical and ensure sitemap consistency across languages.

Quick Start

Choose your preferred canonical URL and apply 301 redirects and canonical tags accordingly.

Frequently Asked Questions about canonical-tag

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fix duplicate content issues caused by HTTP, HTTPS, www, and trailing slash URL variants?▼

Fix duplicate content by identifying URL variants and configuring canonical links to consolidate them. The process selects a preferred canonical URL per page and applies 301 redirects or canonical tags to ensure consistent search signals across all variants.

When should I use a 301 redirect versus a canonical tag for duplicate URLs?▼

Use 301 redirects when you can permanently redirect duplicate URL variants to the chosen canonical version, and apply canonical tags for non-redirectable cases. This dual approach ensures proper consolidation while maintaining page accessibility for variants that cannot be redirected.

How do I align hreflang tags with canonical URLs for multi-language SEO?▼

Align hreflang with canonical by establishing a single preferred URL per language variant and ensuring sitemap consistency across all languages. This multi-language setup guarantees search engines serve the correct regional URL while consolidating duplicate content signals globally.

What is the best way to ensure sitemap consistency when consolidating duplicate URLs?▼

Ensure sitemap consistency by aligning all submitted URLs with your chosen canonical versions. After configuring canonical tags and 301 redirects for variants like trailing slashes and www domains, update your sitemap to exclusively reference the explicit canonical URL per page.

Do I need canonical tags if I already have 301 redirects set up for URL variants?▼

You still need canonical tags alongside 301 redirects for non-redirectable cases and to maintain consistent signals. While 301 redirects handle permanent URL moves, canonical tags provide explicit canonical URL declarations in metadata or HTML for pages where redirects are not possible.

Why does my canonical URL configuration output include both metadata and HTML recommendations?▼

Canonical URL configurations include both metadata and HTML implementation recommendations to accommodate different technical environments. This explicit output ensures you can apply the canonical tag correctly whether your platform supports HTML editing or requires metadata configuration.