{"id":223,"date":"2026-07-11T21:55:02","date_gmt":"2026-07-11T12:55:02","guid":{"rendered":"https:\/\/www.studio-jt.co.kr\/seo-glossary\/canonical-tag\/"},"modified":"2026-11-15T18:46:50","modified_gmt":"2026-11-15T09:46:50","slug":"canonical-tag","status":"publish","type":"seo_glossary","link":"https:\/\/www.studio-jt.co.kr\/en\/seo-glossary\/canonical-tag\/","title":{"rendered":"Canonical Tag"},"content":{"rendered":"<h2 class=\"wp-block-heading\">Why you need to declare a representative URL<\/h2>\n<p class=\"wp-block-paragraph\">It is common for a single page to be reachable at several URLs. Google Search Central&#8217;s canonicalization documentation lists typical causes of duplicate URLs: http and https protocol variants, mobile and desktop device variants, variants created by sorting and filtering, and the same content reachable at different URLs by region. <a class=\"jt-src jt-src--official\" href=\"https:\/\/developers.google.com\/search\/docs\/crawling-indexing\/canonicalization\" target=\"_blank\" rel=\"noopener\">Google (official)<\/a> If you don&#8217;t specify a representative URL, each of these variants becomes a candidate for indexing.<\/p>\n<p class=\"wp-block-paragraph\">Google groups pages with similar content, then chooses on its own the page it judges most complete and useful as the representative (canonical). <a class=\"jt-src jt-src--official\" href=\"https:\/\/developers.google.com\/search\/docs\/crawling-indexing\/consolidate-duplicate-urls\" target=\"_blank\" rel=\"noopener\">Google (official)<\/a> If you leave this decision entirely to the search engine, an unintended URL may appear in search results. The canonical tag is the mechanism by which a site says directly, &#8220;This is the representative address.&#8221; The IETF standard RFC 6596 defines this link relation as &#8220;designating the preferred address among a set of resources that return the same content in duplicate form.&#8221; <a class=\"jt-src jt-src--official\" href=\"https:\/\/www.rfc-editor.org\/rfc\/rfc6596\" target=\"_blank\" rel=\"noopener\">RFC 6596<\/a><\/p>\n<p class=\"wp-block-paragraph\">Duplication isn&#8217;t a problem for only a few sites. In a 2016 Semrush study analyzing 100,000 sites and 450 million pages, 50% of the sites analyzed had duplicate content issues. <a class=\"jt-src jt-src--data\" href=\"https:\/\/www.semrush.com\/blog\/semrush-study-on-site-seo-issues\/\" target=\"_blank\" rel=\"noopener\">Semrush data<\/a> Cleaning up duplicates ties directly to the efficiency of <a href=\"\/en\/seo-glossary\/crawling-indexing\/\">crawling and indexing<\/a>.<\/p>\n<h2 class=\"wp-block-heading\">How to write it and how it works<\/h2>\n<p class=\"wp-block-paragraph\">Add one line in the document head. Google&#8217;s documentation recommends using an absolute URL that includes the protocol and domain rather than a relative path, and adding a self-referential canonical, pointing to itself, on the representative page as well. <a class=\"jt-src jt-src--official\" href=\"https:\/\/developers.google.com\/search\/docs\/crawling-indexing\/consolidate-duplicate-urls\" target=\"_blank\" rel=\"noopener\">Google (official)<\/a><\/p>\n<pre class=\"wp-block-code\"><code>&lt;!-- Accessed URL: https:\/\/example.com\/works\/portfolio-a\/?utm_source=newsletter --&gt;\n&lt;!-- Declaration in the head: the representative URL is the original without parameters --&gt;\n&lt;link rel=\"canonical\" href=\"https:\/\/example.com\/works\/portfolio-a\/\" \/&gt;<\/code><\/pre>\n<h3 class=\"wp-block-heading\">A hint, not a command: the gap between guidance and data<\/h3>\n<p class=\"wp-block-paragraph\">The most misunderstood part is how binding it is. Google&#8217;s canonicalization documentation states firmly that &#8220;indicating a canonical preference is a hint, not a rule.&#8221; <a class=\"jt-src jt-src--official\" href=\"https:\/\/developers.google.com\/search\/docs\/crawling-indexing\/canonicalization\" target=\"_blank\" rel=\"noopener\">Google (official)<\/a> So in practice, the canonical you specify and the one Google actually chooses often differ.<\/p>\n<figure class=\"wp-block-table jt-verdict\"><table><tbody><tr><th>Google&#8217;s official position<\/th><td>rel=canonical is a hint, not a command. Based on other signals such as content quality, internal links, and redirects, Google may choose a different URL as canonical than the one you specified. <a class=\"jt-src jt-src--official\" href=\"https:\/\/developers.google.com\/search\/docs\/crawling-indexing\/canonicalization\" target=\"_blank\" rel=\"noopener\">Google (official)<\/a><\/td><\/tr><tr><th>Expert view<\/th><td>It is common for Google to ignore the declared canonical and choose a different URL. Search Console even has a separate status, &#8220;Duplicate, Google chose different canonical than user,&#8221; and the canonical tag is treated as just one of about twenty canonicalization signals. <a class=\"jt-src jt-src--data\" href=\"https:\/\/ahrefs.com\/blog\/duplicate-google-chose-different-canonical-than-user\/\" target=\"_blank\" rel=\"noopener\">Ahrefs data<\/a><\/td><\/tr><\/tbody><\/table><\/figure>\n<p class=\"wp-block-paragraph\">The gap exists because the canonical tag is not a standalone command but one signal among many. If internal links, sitemaps, and redirects point to a URL other than the canonical, Google effectively follows the majority of signals. So in practice, rather than relying on the single canonical line, the only reliable approach is to make every signal point to the same URL. Google&#8217;s documentation also advises against specifying different URLs with different methods. <a class=\"jt-src jt-src--official\" href=\"https:\/\/developers.google.com\/search\/docs\/crawling-indexing\/consolidate-duplicate-urls\" target=\"_blank\" rel=\"noopener\">Google (official)<\/a><\/p>\n<figure class=\"wp-block-table\"><table><thead><tr><th>Aspect<\/th><th>Canonical tag<\/th><th>301 redirect<\/th><\/tr><\/thead><tbody><tr><td>Page access<\/td><td>Both URLs remain accessible<\/td><td>Visiting the original URL sends you to the representative URL<\/td><\/tr><tr><td>Classification in Google&#8217;s docs<\/td><td>A strong signal (hint) that the specified URL should be canonical<\/td><td>A strong signal that the redirect target should be canonical<\/td><\/tr><tr><td>Main use<\/td><td>Naming a representative while keeping variant URLs (parameter and sort variants)<\/td><td>Moving URLs, retiring pages, unifying http\u2192https<\/td><\/tr><\/tbody><\/table><\/figure>\n<p class=\"wp-block-paragraph\">If there is no reason to keep both URLs alive, a <a href=\"\/en\/seo-glossary\/301-redirect\/\">301 redirect<\/a> is the clearer choice. Use the canonical tag when you need to &#8220;keep the page but name the representative.&#8221;<\/p>\n<h2 class=\"wp-block-heading\">Practical checkpoints at the theme-building stage<\/h2>\n<p class=\"wp-block-paragraph\">Before leaving it to an SEO plugin, first find out what canonical your theme outputs. WordPress core automatically outputs a canonical for single posts and pages through the rel_canonical hook, but not for custom routes, archives, or search result pages. If you build a custom theme yourself, fill this gap at the theme level and align the output with Google&#8217;s recommendations (absolute URL, self-reference, consistent signals). <a class=\"jt-src jt-src--official\" href=\"https:\/\/developers.google.com\/search\/docs\/crawling-indexing\/consolidate-duplicate-urls\" target=\"_blank\" rel=\"noopener\">Google (official)<\/a><\/p>\n<pre class=\"wp-block-code\"><code>\/\/ WordPress core outputs a canonical automatically only for single posts.\n\/\/ For archives and custom routes, the theme calculates and fills it in.\nadd_action( 'wp_head', 'jt_output_canonical' );\n\nfunction jt_output_canonical() {\n\tif ( is_singular() ) {\n\t\treturn; \/\/ Core (rel_canonical) already outputs it.\n\t}\n\n\tglobal $wp;\n\t\/\/ $wp-&gt;request includes paths like \/page\/2,\n\t\/\/ so each paginated page references itself.\n\t$canonical = trailingslashit( home_url( $wp-&gt;request ) );\n\n\techo '&lt;link rel=\"canonical\" href=\"' . esc_url( $canonical ) . '\" \/&gt;' . \"\\n\";\n}<\/code><\/pre>\n<ul class=\"wp-block-list\"><li>Always calculate the canonical URL on https and the primary domain, and share the same basis with redirects and sitemaps. Google&#8217;s documentation advises against specifying different URLs across methods. <a class=\"jt-src jt-src--official\" href=\"https:\/\/developers.google.com\/search\/docs\/crawling-indexing\/consolidate-duplicate-urls\" target=\"_blank\" rel=\"noopener\">Google (official)<\/a><\/li><li>If both the theme and an SEO plugin output one, you end up with two canonicals. Google&#8217;s canonicalization troubleshooting documentation lists CMSs or plugins misusing canonicalization methods to point to the wrong URL as a common cause. <a class=\"jt-src jt-src--official\" href=\"https:\/\/developers.google.com\/search\/docs\/crawling-indexing\/canonicalization-troubleshooting\" target=\"_blank\" rel=\"noopener\">Google (official)<\/a> Make sure only one of them outputs it.<\/li><li>After deployment, check the actual output with View Page Source, and use the URL Inspection tool in Google Search Console to confirm that the &#8220;User-declared canonical&#8221; and &#8220;Google-selected canonical&#8221; match. <a class=\"jt-src jt-src--official\" href=\"https:\/\/support.google.com\/webmasters\/answer\/9012289\" target=\"_blank\" rel=\"noopener\">GSC Help Center<\/a><\/li><\/ul>\n<h2 class=\"wp-block-heading\">Common mistakes<\/h2>\n<ul class=\"wp-block-list\"><li><strong>Wrong canonical from a copied template<\/strong> &#8211; When a page template is copied without changing the rel=canonical target, every page ends up declaring the wrong address as canonical. The Google Search Central Blog lists this as a typical mistake. <a class=\"jt-src jt-src--official\" href=\"https:\/\/developers.google.com\/search\/blog\/2013\/04\/5-common-mistakes-with-relcanonical\" target=\"_blank\" rel=\"noopener\">Google (official)<\/a> Hardcoding the home URL into a shared header is the same type of mistake, so open any subpage right after deployment and check the source.<\/li><li><strong>Pointing all pagination to page 1<\/strong> &#8211; Google&#8217;s pagination documentation advises against using the first page of a series as the canonical and says to give each page its own canonical URL; it also states clearly that rel=&#8221;next&#8221;\/rel=&#8221;prev&#8221; are no longer used. <a class=\"jt-src jt-src--official\" href=\"https:\/\/developers.google.com\/search\/docs\/specialty\/ecommerce\/pagination-and-incremental-page-loading\" target=\"_blank\" rel=\"noopener\">Google (official)<\/a><\/li><li><strong>https\/www variant mismatch<\/strong> &#8211; The live site uses the https and www domain, but the canonical points to an http or non-www address. Because the canonical is a hint and not a rule, it can simply be ignored if it conflicts with redirects and sitemaps. <a class=\"jt-src jt-src--data\" href=\"https:\/\/ahrefs.com\/blog\/duplicate-google-chose-different-canonical-than-user\/\" target=\"_blank\" rel=\"noopener\">Ahrefs data<\/a><\/li><li><strong>Duplicate output<\/strong> &#8211; If one document has several rel=canonical tags pointing to different URLs, Google says it is &#8220;likely to ignore all the rel=canonical hints.&#8221; <a class=\"jt-src jt-src--official\" href=\"https:\/\/developers.google.com\/search\/blog\/2013\/04\/5-common-mistakes-with-relcanonical\" target=\"_blank\" rel=\"noopener\">Google (official)<\/a><\/li><li><strong>Using it together with noindex<\/strong> &#8211; Google&#8217;s canonical documentation does not recommend using noindex to prevent canonical selection within a site, because it blocks the page from search entirely. <a class=\"jt-src jt-src--official\" href=\"https:\/\/developers.google.com\/search\/docs\/crawling-indexing\/consolidate-duplicate-urls\" target=\"_blank\" rel=\"noopener\">Google (official)<\/a> Keep only the one signal that fits your purpose.<\/li><\/ul>\n<h2 class=\"wp-block-heading\">References<\/h2>\n<ul class=\"wp-block-list\"><li><a href=\"https:\/\/developers.google.com\/search\/docs\/crawling-indexing\/consolidate-duplicate-urls\" target=\"_blank\" rel=\"noopener\">How to specify a canonical with rel=&#8221;canonical&#8221; and other methods &#8211; Google Search Central<\/a><\/li><li><a href=\"https:\/\/developers.google.com\/search\/docs\/crawling-indexing\/canonicalization\" target=\"_blank\" rel=\"noopener\">What is canonicalization &#8211; Google Search Central<\/a><\/li><li><a href=\"https:\/\/developers.google.com\/search\/docs\/crawling-indexing\/canonicalization-troubleshooting\" target=\"_blank\" rel=\"noopener\">Fix canonicalization issues &#8211; Google Search Central<\/a><\/li><li><a href=\"https:\/\/developers.google.com\/search\/docs\/specialty\/ecommerce\/pagination-and-incremental-page-loading\" target=\"_blank\" rel=\"noopener\">Pagination, incremental page loading, and their impact on Google Search &#8211; Google Search Central<\/a><\/li><li><a href=\"https:\/\/developers.google.com\/search\/blog\/2013\/04\/5-common-mistakes-with-relcanonical\" target=\"_blank\" rel=\"noopener\">5 common mistakes with rel=canonical &#8211; Google Search Central Blog<\/a><\/li><li><a href=\"https:\/\/support.google.com\/webmasters\/answer\/9012289\" target=\"_blank\" rel=\"noopener\">URL Inspection tool &#8211; Google Search Console Help<\/a><\/li><li><a href=\"https:\/\/www.rfc-editor.org\/rfc\/rfc6596\" target=\"_blank\" rel=\"noopener\">RFC 6596: The Canonical Link Relation &#8211; IETF<\/a><\/li><li><a href=\"https:\/\/ahrefs.com\/blog\/duplicate-google-chose-different-canonical-than-user\/\" target=\"_blank\" rel=\"noopener\">Duplicate, Google Chose Different Canonical Than User &#8211; Ahrefs<\/a><\/li><li><a href=\"https:\/\/www.semrush.com\/blog\/semrush-study-on-site-seo-issues\/\" target=\"_blank\" rel=\"noopener\">11 Most Common On-Site SEO Mistakes &#8211; Semrush Study<\/a><\/li><\/ul>","protected":false},"excerpt":{"rendered":"<p>A canonical tag is an HTML declaration that tells search engines which URL is the representative one when the same content can be reached at several URLs. You place it in the document head as link rel=&#8221;canonical&#8221; to consolidate signals and indexing, which could otherwise be split across variant URLs, onto one representative address. Google treats it as a hint, not a rule, and it often chooses a different URL as canonical in practice, so it only works when it agrees with your redirect, sitemap, and internal link signals.<\/p>\n","protected":false},"template":"","glossary_categories":[21],"class_list":["post-223","seo_glossary","type-seo_glossary","status-publish","hentry","glossary_categories-technical"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.studio-jt.co.kr\/en\/wp-json\/wp\/v2\/seo_glossary\/223","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.studio-jt.co.kr\/en\/wp-json\/wp\/v2\/seo_glossary"}],"about":[{"href":"https:\/\/www.studio-jt.co.kr\/en\/wp-json\/wp\/v2\/types\/seo_glossary"}],"version-history":[{"count":1,"href":"https:\/\/www.studio-jt.co.kr\/en\/wp-json\/wp\/v2\/seo_glossary\/223\/revisions"}],"predecessor-version":[{"id":2308,"href":"https:\/\/www.studio-jt.co.kr\/en\/wp-json\/wp\/v2\/seo_glossary\/223\/revisions\/2308"}],"wp:attachment":[{"href":"https:\/\/www.studio-jt.co.kr\/en\/wp-json\/wp\/v2\/media?parent=223"}],"wp:term":[{"taxonomy":"glossary_categories","embeddable":true,"href":"https:\/\/www.studio-jt.co.kr\/en\/wp-json\/wp\/v2\/glossary_categories?post=223"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}