canonical-tag

Configure canonical tags and 301 redirects for duplicate content consolidation.

872|122|Updated Feb 26, 2026
One-click install
npx skills add https://github.com/kostja94/marketing-skills --skill canonical-tag
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: canonical-tag
Source: https://github.com/kostja94/marketing-skills/tree/main/skills/seo/technical/canonical
Command: npx skills add https://github.com/kostja94/marketing-skills --skill canonical-tag

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps configure canonical tags and 301 redirects to manage duplicate content issues and consolidate URL signals for search engines.

Core Features & Use Cases

  • Duplicate Content Management: Identifies and resolves issues arising from multiple URLs serving the same content.
  • URL Consolidation: Establishes a preferred URL for search engines to index.
  • HTTPS & Security: Ensures the site uses secure HTTPS connections and redirects HTTP traffic.
  • Use Case: When a website has both www.example.com and example.com, or http:// and https:// versions, this skill helps choose one as canonical and redirect the others.

Quick Start

Configure the canonical tag for the page '/products/awesome-widget' to be 'https://www.example.com/products/awesome-widget'.

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 www and non-www URL versions?

Canonical tags declare your preferred indexed URL to search engines without changing visitor browsing behavior, while 301 redirects permanently forward traffic from duplicate URLs to the canonical version.

How do I implement canonical tags in a Next.js application?

Next.js implementation patterns provide the exact code structure to inject canonical tags into your page headers, ensuring search engines identify the correct consolidated HTTPS URL.

What is the best way to redirect HTTP traffic to HTTPS for SEO?

The best way to redirect HTTP traffic to HTTPS for SEO is configuring 301 server redirects. The skill provides specific implementation patterns for both Apache and Nginx environments to enforce secure connections.

Why does my site need URL consolidation if I already use canonical tags?

Your site needs URL consolidation because canonical tags only suggest preferred URLs to crawlers, whereas 301 redirects actively forward users and link equity. Combining both ensures duplicate site versions are fully resolved.

Does this canonical tag configuration guide work for Apache and Nginx servers?

Yes, the guide works for Apache and Nginx servers by providing specific 301 redirect implementation patterns. It addresses HTTPS security and duplicate content scenarios across these server environments.