{"id":13908,"date":"2024-02-19T06:45:19","date_gmt":"2024-02-18T21:45:19","guid":{"rendered":"https:\/\/www.suzukikenichi.com\/blog\/?p=13908"},"modified":"2024-02-19T06:40:03","modified_gmt":"2024-02-18T21:40:03","slug":"dont-use-rel-canonical-with-other-link-elements","status":"publish","type":"post","link":"https:\/\/www.suzukikenichi.com\/blog\/dont-use-rel-canonical-with-other-link-elements\/","title":{"rendered":"\u6b63\u898f\u5316\u76ee\u7684\u306erel=canonical\u306f\u4ed6\u306elink\u8981\u7d20\u3068\u307e\u3068\u3081\u3066\u8a18\u8ff0\u3057\u3066\u306f\u3044\u3051\u306a\u3044"},"content":{"rendered":"<p class=\"p20-b al-r small\">[\u30ec\u30d9\u30eb: \u4e0a\u7d1a]<\/p>\n<p class=\"p60-b\">\u7279\u5b9a\u306e\u5c5e\u6027\u3068\u5171\u306b\u4f7f\u308f\u308c\u305f <code>rel=\"canonical\"<\/code> \u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u306f\u6b63\u898f\u5316\u306b\u306f\u4f7f\u7528\u3055\u308c\u306a\u3044\u3053\u3068\u3092\u3001<a href=\"https:\/\/developers.google.com\/search\/docs\/crawling-indexing\/consolidate-duplicate-urls#use-rel=canonical-link-annotations\">\u6b63\u898f\u30da\u30fc\u30b8\u306e\u6307\u5b9a\u65b9\u6cd5\u3092\u89e3\u8aac\u3059\u308b\u6280\u8853\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8<\/a>\u3067 Google \u306f\u660e\u78ba\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n<h2>\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306e\u66f4\u65b0\u7b87\u6240<\/h2>\n<p><code>rel=\"canonical\"<\/code> \u306e\u8aac\u660e\u306f\u4ee5\u524d\u306f\u6b21\u306e\u3088\u3046\u306b\u66f8\u304b\u308c\u3066\u3044\u307e\u3057\u305f\u3002<\/p>\n<blockquote><p>Google supports <code>rel<\/code> canonical <code>link<\/code> annotations as described in <a href=\"https:\/\/www.rfc-editor.org\/rfc\/rfc6596\">RFC 6596<\/a>.<\/p><\/blockquote>\n<blockquote><p>Google \u306f\u3001<a href=\"https:\/\/www.rfc-editor.org\/rfc\/rfc6596\">RFC 6596<\/a> \u306b\u8a18\u8f09\u3055\u308c\u3066\u3044\u308b\u3088\u3046\u306b\u3001<code>rel<\/code> canonical <code>link<\/code> \u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u3059\u3002<\/p><\/blockquote>\n<p>\u66f4\u65b0\u5f8c\u306f\u6b21\u306e\u3088\u3046\u306b\u5909\u308f\u308a\u307e\u3057\u305f\u3002<\/p>\n<blockquote><p>Google supports <strong><mark>explicit<\/mark><\/strong> <code>rel<\/code> canonical <code>link<\/code> annotations as described in RFC 6596. <code>rel=\"canonical\"<\/code> annotations that suggest alternate versions of a page are ignored; specifically, <code>rel=\"canonical\"<\/code> annotations with <code>hreflang<\/code>, <code>lang<\/code>, <code>media<\/code>, and <code>type<\/code> attributes are not used for canonicalization. Instead, use the appropriate link annotations to specify alternate versions of a page; for example, <code>link<\/code> <code>rel=\"alternate\"<\/code> <code>hreflang<\/code> for language and country annotations.<\/p><\/blockquote>\n<blockquote><p>Google \u306f\u3001<a href=\"https:\/\/www.rfc-editor.org\/rfc\/rfc6596\">RFC 6596<\/a> \u306b\u8a18\u8f09\u3055\u308c\u3066\u3044\u308b\u3088\u3046\u306b\u3001<strong><mark>\u660e\u793a\u7684\u306a<\/mark><\/strong> <code>rel<\/code> canonical <code>link<\/code> \u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u3059\u3002\u30a6\u30a7\u30d6\u30da\u30fc\u30b8\u306e\u4ee3\u66ff\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u793a\u5506\u3059\u308b <code>rel=\"canonical\"<\/code> \u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u306f\u7121\u8996\u3055\u308c\u307e\u3059\u3002\u5177\u4f53\u7684\u306b\u306f\u3001<code>hreflang<\/code> \u3068 <code>lang<\/code>\u3001<code>media<\/code>\u3001\u304a\u3088\u3073 <code>type<\/code> \u5c5e\u6027\u3092\u6301\u3064 <code>rel=\"canonical\"<\/code> \u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u306f\u6b63\u898f\u5316\u306b\u4f7f\u7528\u3055\u308c\u307e\u305b\u3093\u3002\u305d\u306e\u4ee3\u308f\u308a\u306b\u3001\u9069\u5207\u306a <code>link<\/code> \u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u3092\u4f7f\u7528\u3057\u3066\u3001\u30da\u30fc\u30b8\u306e\u4ee3\u66ff\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u6307\u5b9a\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u305f\u3068\u3048\u3070\u3001\u8a00\u8a9e\u3068\u56fd\u306e\u6307\u5b9a\u306b\u306f <code>link<\/code> <code>rel=\"alternate\"<\/code> <code>hreflang<\/code> \u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p><\/blockquote>\n<div class=\"small\">&#x1f4dd;\u3059\u305a\u304d\u6ce8\uff1a\u65e5\u672c\u8a9e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306f\u307e\u3060\u66f4\u65b0\u3055\u308c\u3066\u3044\u306a\u3044\u306e\u3067\u3001\u8a33\u306f\u50d5\u306b\u3088\u308b<\/div>\n<p>\u300cexplicit\uff08\u660e\u793a\u7684\u306a\uff09\u300d\u3068\u3044\u3046\u5358\u8a9e\u304c\u8ffd\u52a0\u3055\u308c\u307e\u3057\u305f\uff08\u30cf\u30a4\u30e9\u30a4\u30c8\u3057\u305f\u5358\u8a9e\uff09\u3002<br \/>\u305d\u3057\u3066\u3001\u3055\u3089\u306b\u8aac\u660e\u304c\u5897\u3048\u3066\u3044\u307e\u3059\u3002<\/p>\n<p class=\"p30-t p40-b\">\u3068\u306f\u3044\u3048\u3001\u8a00\u3063\u3066\u3044\u308b\u3053\u3068\u304c\u308f\u304b\u308b\u3088\u3046\u306a\u308f\u304b\u3089\u306a\u3044\u3088\u3046\u306a\u3002<\/p>\n<h2><code>rel=\"canonical\"<\/code> \u306f\u5358\u72ec\u3067\u4f7f\u3046<\/h2>\n<p>\u3064\u307e\u308a\u3001\u91cd\u8907\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u542b\u3080\u30da\u30fc\u30b8\u304c\u5b58\u5728\u3059\u308b\u5834\u5408\u3001\u512a\u5148\u3059\u308b\u300c\u6b63\u898f\u300d\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u660e\u793a\u3059\u308b\u305f\u3081\u306b\u306f\u3001<\/p>\n<ul>\n<li><code>rel=canonical\"<\/code> \u30ea\u30f3\u30af\u8981\u7d20\u3092\u5358\u72ec\u3067\u4f7f\u3044<\/li>\n<li><code>hreflang<\/code> \u3084 <code>lang<\/code>\u3001<code>media<\/code>\u3001<code>type<\/code> \u5c5e\u6027\u3068\u4e00\u7dd2\u306b\u306f\u4f7f\u308f\u306a\u3044<\/li>\n<\/ul>\n<p>\u3053\u3068\u3092\u63a8\u5968\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u300c\u4e00\u7dd2\u306b\u300d\u3068\u3044\u3046\u306e\u306f\u3001\u300c1 \u3064\u306e\u30bf\u30b0\u306b\u307e\u3068\u3081\u3066\u300d\u3068\u3044\u3046\u610f\u5473\u3067\u3059\u3002<br \/>\u540c\u3058\u30da\u30fc\u30b8\u3067\u305d\u308c\u305e\u308c\u3092\u5225\u3005\u306b\u4f7f\u3046\u3053\u3068\u306f\u554f\u984c\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>\u305f\u3068\u3048\u3070\u3001\u82f1\u8a9e\u3068\u65e5\u672c\u8a9e\u3067\u540c\u3058\u5185\u5bb9\u306e\u8a18\u4e8b\u3092\u516c\u958b\u3057\u3066\u3044\u305f\u3068\u3057\u307e\u3059\u3002<\/p>\n<ul>\n<li>\u82f1\u8a9e\u8a18\u4e8b URL\uff1a<code>https:\/\/www.example.com\/article<\/code><\/li>\n<li>\u65e5\u672c\u8a9e\u8a18\u4e8b URL\uff1a<code>https:\/\/www.example.com\/article-jp<\/code><\/li>\n<\/ul>\n<p>\u82f1\u8a9e\u30da\u30fc\u30b8\u306b\u306f\u3001\u6b21\u306e\u3088\u3046\u306b\u8a18\u8ff0\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre style=\"overflow-x: auto\"><code class=\"green\">&lt;link rel=\"canonical\" href=\"https:\/\/www.example.com\/article\" \/&gt;\r\n&lt;link rel=\"alternate\" hreflang=\"ja\" href=\"https:\/\/www.example.com\/article-jp\" \/&gt;<\/code><\/pre>\n<p>1 \u884c\u76ee\u306f\u6b63\u898f URL \u306e\u6307\u5b9a\u3067\u30012 \u884c\u76ee\u306f\u65e5\u672c\u8a9e\u306e\u4ee3\u66ff\u30da\u30fc\u30b8\u306e\u6307\u5b9a\u3067\u3059\u3002<\/p>\n<p>\u3069\u3061\u3089\u3082 <code>link<\/code> \u8981\u7d20\u3060\u304b\u3089\u3068\u3044\u3063\u3066\u3001<code>rel=\"canonical\"<\/code> \u3068 <code>hreflang<\/code> \u3092\u307e\u3068\u3081\u3066\u8a18\u8ff0\u3057\u3066\u306f\u3044\u3051\u307e\u305b\u3093\u3002<\/p>\n<pre style=\"overflow-x: auto\"><code class=\"green\">&#x274c; &lt;link rel=\"canonical\" href=\"https:\/\/www.example.com\/article\" rel=\"alternate\" hreflang=\"ja\" href=\"https:\/\/www.example.com\/article-jp\" \/&gt;<\/code><\/pre>\n<p class=\"p40-b\">\u3053\u306e\u3088\u3046\u306b\u8a18\u8ff0\u3057\u3066\u3057\u307e\u3046\u3068\u3001\u6b63\u898f\u30da\u30fc\u30b8\u3092\u8b58\u5225\u3059\u308b\u60c5\u5831\u3068\u3057\u3066\u306f Google \u304b\u3089\u306f\u7121\u8996\u3055\u308c\u307e\u3059\u3002<\/p>\n<h2>\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3068\u3057\u3066\u306e\u66f4\u65b0\u3001\u4ed5\u69d8\u5909\u66f4\u3067\u306f\u306a\u3044<\/h2>\n<p>\u3053\u3053\u307e\u3067\u8aac\u660e\u3057\u305f\u5185\u5bb9\u306f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u4e0a\u3067\u306e\u5909\u66f4\u3067\u3059\u3002<br \/>\u6b63\u898f\u5316\u76ee\u7684\u306e <code>rel=\"canonical\"<\/code> \u304c\u4ed6\u306e <code>link<\/code> \u8981\u7d20\u3068\u4e00\u7dd2\u306b\u4f7f\u308f\u308c\u305f\u5834\u5408\u306f\u3001\u3053\u308c\u307e\u3067\u3082 Google \u306f\u7121\u8996\u3057\u3066\u3044\u307e\u3057\u305f\u3002<br \/>\u660e\u6587\u5316\u3057\u305f\u3060\u3051\u3067\u3059\u3002<\/p>\n<p>\u304a\u305d\u3089\u304f\u3001\u307e\u3068\u3081\u3066\u8a18\u8ff0\u3057\u3066\u3044\u308b\u30b5\u30a4\u30c8\u304c\u5c11\u306a\u304b\u3089\u305a\u5b58\u5728\u3057\u3066\u3044\u305f\u304b\u3089\u3067\u3057\u3087\u3046\u3002<br \/>\u7ba1\u7406\u30b5\u30a4\u30c8\u306e <code>rel=\"canonical\"<\/code> \u304c\u975e\u63a8\u5968\u306e\u72b6\u614b\u306b\u306a\u3063\u3066\u3044\u306a\u3044\u304b\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7279\u5b9a\u306e\u5c5e\u6027\u3068\u5171\u306b\u4f7f\u308f\u308c\u305f rel=&#8221;canonical&#8221; \u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u306f\u6b63\u898f\u5316\u306b\u306f\u4f7f\u7528\u3055\u308c\u306a\u3044\u3053\u3068\u3092\u3001\u6b63\u898f\u30da\u30fc\u30b8\u306e\u6307\u5b9a\u65b9\u6cd5\u3092\u89e3\u8aac\u3059\u308b\u6280\u8853\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3067 Google \u306f\u660e\u78ba\u306b\u3057\u305f\u3002<\/p>\n","protected":false},"author":1,"featured_media":13909,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[614],"class_list":["post-13908","post","type-post","status-publish","format-standard","has-post-thumbnail","category-google-seo","tag-rel-canonical"],"_links":{"self":[{"href":"https:\/\/www.suzukikenichi.com\/blog\/wp-json\/wp\/v2\/posts\/13908","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.suzukikenichi.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.suzukikenichi.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.suzukikenichi.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.suzukikenichi.com\/blog\/wp-json\/wp\/v2\/comments?post=13908"}],"version-history":[{"count":0,"href":"https:\/\/www.suzukikenichi.com\/blog\/wp-json\/wp\/v2\/posts\/13908\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.suzukikenichi.com\/blog\/wp-json\/wp\/v2\/media\/13909"}],"wp:attachment":[{"href":"https:\/\/www.suzukikenichi.com\/blog\/wp-json\/wp\/v2\/media?parent=13908"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.suzukikenichi.com\/blog\/wp-json\/wp\/v2\/categories?post=13908"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.suzukikenichi.com\/blog\/wp-json\/wp\/v2\/tags?post=13908"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}