{"id":9799,"date":"2019-01-10T06:45:47","date_gmt":"2019-01-09T21:45:47","guid":{"rendered":"https:\/\/www.suzukikenichi.com\/blog\/?p=9799"},"modified":"2019-01-10T07:01:55","modified_gmt":"2019-01-09T22:01:55","slug":"how-to-noindex-xml-sitemap-by-x-robots-tag","status":"publish","type":"post","link":"https:\/\/www.suzukikenichi.com\/blog\/how-to-noindex-xml-sitemap-by-x-robots-tag\/","title":{"rendered":"\u30b5\u30a4\u30c8\u30de\u30c3\u30d7\u306f\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3055\u305b\u308b\u5fc5\u8981\u306a\u3057\u3002X-Robots-Tag\u306enoindex\u3067\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u56de\u907f\u304c\u53ef\u80fd"},"content":{"rendered":"<p class=\"p20-b al-r small\">[\u30ec\u30d9\u30eb: \u4e2d\u7d1a]<\/p>\n<p class=\"p60-b\">\u691c\u7d22\u30a8\u30f3\u30b8\u30f3\u306e\u305f\u3081\u306b\u69cb\u6210\u3059\u308b\u30b5\u30a4\u30c8\u30de\u30c3\u30d7 \u30d5\u30a1\u30a4\u30eb\u3092\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3055\u305b\u308b\u5fc5\u8981\u306f\u3042\u308a\u307e\u305b\u3093\u3002<br \/><code><a href=\"https:\/\/www.suzukikenichi.com\/blog\/how-to-use-x-robots-tag\/\">X-Robots-Tag<\/a><\/code> \u3067 <code>noindex<\/code> \u3092\u9001\u4fe1\u3059\u308b\u3068\u30b5\u30a4\u30c8\u30de\u30c3\u30d7\u304c\u691c\u7d22\u7d50\u679c\u306b\u51fa\u306a\u3044\u3088\u3046\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2>\u30b5\u30a4\u30c8\u30de\u30c3\u30d7\u3092\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3055\u305b\u308b\u5fc5\u8981\u306a\u3057<\/h2>\n<p>Google \u306e John Mueller\uff08\u30b8\u30e7\u30f3\u30fb\u30df\u30e5\u30fc\u30e9\u30fc\uff09\u6c0f\u304c\u3001\u6b21\u306e\u3088\u3046\u306a\u30ea\u30de\u30a4\u30f3\u30c0\u30fc\u3092 Twitter \u306b\u6295\u7a3f\u3057\u307e\u3057\u305f\u3002<\/p>\n<blockquote><p>XML \u30b5\u30a4\u30c8\u30de\u30c3\u30d7\u3092\u5bfe\u8c61\u306b\u3057\u305f &#8220;noindex&#8221; \u306e X-Robots-Tag HTTP \u30d8\u30c3\u30c0\u30fc \u3092\u4f7f\u3063\u3066\u304b\u307e\u308f\u306a\u3044\u3002\u30b5\u30a4\u30c8\u30de\u30c3\u30d7\u3068\u3057\u3066\u6a5f\u80fd\u3059\u308b\u305f\u3081\u306b\u3001\u30b5\u30a4\u30c8\u30de\u30c3\u30d7\u306f\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3055\u308c\u308b\u5fc5\u8981\u306f\u306a\u3044\u3002\u30b5\u30a4\u30c8\u30de\u30c3\u30d7\u306f\uff08\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3055\u305b\u308b\u305f\u3081\u306b\u4f5c\u3089\u308c\u305f\uff09HTML \u30da\u30fc\u30b8\u3068\u3044\u3046\u3088\u308a\u3082\u3001\u3080\u3057\u308d\uff08\u6a5f\u68b0\u306e\u305f\u3081\u306b\u4f5c\u3089\u308c\u305f\uff09robots.txt \u306e\u3088\u3046\u306a\u3082\u306e\u3060\u3002<\/p><\/blockquote>\n<blockquote class=\"twitter-tweet\" data-lang=\"ja\">\n<p lang=\"en\" dir=\"ltr\">Since this comes up from time to time &#8212; it&#39;s fine to use the x-robots-tag HTTP header with &quot;noindex&quot; for XML sitemap files. They don&#39;t need to be indexed to work as sitemap files, they&#39;re more like robots.txt files (made for machines) than like HTML pages (made for indexing). <a href=\"https:\/\/t.co\/ehEcshrmxb\">https:\/\/t.co\/ehEcshrmxb<\/a><\/p>\n<p>&mdash; &#x1f34c; John &#x1f34c; (@JohnMu) <a href=\"https:\/\/twitter.com\/JohnMu\/status\/1083093012266340362?ref_src=twsrc%5Etfw\">2019\u5e741\u67089\u65e5<\/a><\/p><\/blockquote>\n<p class=\"p30-t\">\u901a\u5e38\u306e\u30a6\u30a7\u30d6\u30da\u30fc\u30b8\u306f\u3001\u691c\u7d22\u30e6\u30fc\u30b6\u30fc\u306b\u898b\u3064\u3051\u3066\u3082\u3089\u3046\u305f\u3081\u306b\u691c\u7d22\u7d50\u679c\u306b\u51fa\u308b\u3088\u3046\u306b\u30af\u30ed\u30fc\u30eb\u30fb\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3055\u305b\u307e\u3059\u3002<br \/>\u5bfe\u3057\u3066\u3001\u30b5\u30a4\u30c8\u30de\u30c3\u30d7\u306f\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3055\u305b\u308b\u5fc5\u8981\u306f\u3042\u308a\u307e\u305b\u3093\u3002<br \/>\u691c\u7d22\u7d50\u679c\u3067\u30e6\u30fc\u30b6\u30fc\u306b\u898b\u3064\u3051\u3066\u3082\u3089\u3046\u305f\u3081\u306e\u3082\u306e\u3067\u306f\u306a\u3044\u304b\u3089\u3067\u3059\u3002<br \/>\u691c\u7d22\u30a8\u30f3\u30b8\u30f3\u304c\u53d6\u5f97\u3067\u304d\u3055\u3048\u3059\u308c\u3070\u3001\u305d\u308c\u3067\u3044\u3044\u306e\u3067\u3059\u3002<\/p>\n<p>\u203b\u3053\u3053\u3067\u8a00\u3046\u300c\u30b5\u30a4\u30c8\u30de\u30c3\u30d7\u300d\u306f\u3001\u691c\u7d22\u30a8\u30f3\u30b8\u30f3\u7528\u306e\u30b5\u30a4\u30c8\u30de\u30c3\u30d7\uff08\u4e00\u822c\u7684\u306b\u306f\u3001XML \u5f62\u5f0f\u306e\u30b5\u30a4\u30c8\u30de\u30c3\u30d7\uff09\u306e\u3053\u3068\u3002\u30b5\u30a4\u30c8\u5185\u306e\u5730\u56f3\u3068\u3057\u3066\u30e6\u30fc\u30b6\u30fc\u306b\u5229\u7528\u3057\u3066\u3082\u3089\u3046\u30a6\u30a7\u30d6\u30da\u30fc\u30b8\u3068\u3057\u3066\u516c\u958b\u3057\u3066\u3044\u308b\uff08HTML \u5f62\u5f0f\u306e\uff09\u30b5\u30a4\u30c8\u30de\u30c3\u30d7\u3067\u306f\u306a\u3044\u3002<\/p>\n<p class=\"p40-b\">\u305d\u3053\u3067\u3001\u30df\u30e5\u30fc\u30e9\u30fc\u6c0f\u306f <code>X-Robots-Tag<\/code> \u3067\u30b5\u30a4\u30c8\u30de\u30c3\u30d7\u3092 <code>noindex<\/code> \u51e6\u7406\u3059\u308b\u3053\u3068\u3092\u30a2\u30c9\u30d0\u30a4\u30b9\u3057\u305f\u306e\u3067\u3059\u3002<\/p>\n<h2>X-Robots-Tag \u3067 noindex \u3092 HTTP \u30d8\u30c3\u30c0\u30fc\u306b\u51fa\u529b\u3059\u308b\u65b9\u6cd5<\/h2>\n<p>X-Robots-Tag \u3067 noindex \u3092 HTTP \u30d8\u30c3\u30c0\u30fc\u306b\u51fa\u529b\u3059\u308b\u306b\u306f\u3001\u305f\u3068\u3048\u3070\u3001Apache \u7cfb\u306e\u30a6\u30a7\u30d6\u30b5\u30fc\u30d0\u30fc\u3067\u3042\u308c\u3070\u3001.htaccess \u306b\u6b21\u306e\u3088\u3046\u306b\u8a18\u8ff0\u3057\u307e\u3059\uff08\u30b5\u30a4\u30c8\u30de\u30c3\u30d7\u306e\u30d5\u30a1\u30a4\u30eb\u540d\u304c sitemap.xml \u306e\u5834\u5408\uff09\u3002<\/p>\n<pre style=\"overflow-x: auto\"><code class=\"green\">&lt;Files sitemap.xml&gt;\r\nHeader set X-Robots-Tag \"noindex\"\r\n&lt;\/Files&gt;<\/code><\/pre>\n<p class=\"p30-t\">\u30b5\u30a4\u30c8\u30de\u30c3\u30d7\u306b\u5bfe\u3057\u3066\u3001<code>X-Robots-Tag<\/code> \u306e <code>noindex<\/code> \u304c HTTP \u30d8\u30c3\u30c0\u30fc\u3067\u9001\u4fe1\u3055\u308c\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" itemprop=\"image\" src=\"https:\/\/www.suzukikenichi.com\/images\/x-rohots-tag-with-noindex-for-sitemap-1.png\" alt=\"HTTP \u30d8\u30c3\u30c0\u30fc\u306b\u51fa\u529b\u3055\u308c\u305f X-Robots-Tag \u306e noindex\" width=\"415\" height=\"426\" \/><\/p>\n<p class=\"p60-t\">\u30b5\u30a4\u30c8\u30de\u30c3\u30d7\u304c\u691c\u7d22\u7d50\u679c\u306b\u51fa\u305f\u3068\u3057\u3066\u3082\u5b9f\u5bb3\u306f\u3042\u308a\u307e\u305b\u3093\u3002<br \/>\u306a\u306e\u3067\u3001\u6c17\u306b\u306a\u3089\u306a\u3051\u308c\u3070\u7121\u8996\u3067\u304d\u307e\u3059\u3002<br \/>\u73fe\u72b6\u3067\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3055\u308c\u3066\u3044\u306a\u3044\u306e\u3067\u3042\u308c\u3070\u3001<code>X-Robots-Tag<\/code> \u306e <code>noindex<\/code> \u3092\u3042\u3089\u305f\u3081\u3066\u69cb\u6210\u3057\u306a\u304f\u3066\u3082\u3044\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n<p>\u3067\u3059\u304c\u3001\u7121\u99c4\u306a\u3082\u306e\u306f\u691c\u7d22\u7d50\u679c\u306b\u6975\u529b\u51fa\u3057\u305f\u304f\u306a\u3044\u3068\u3044\u3046\u306e\u3067\u3042\u308c\u3070\u3053\u306e\u8a18\u4e8b\u3067\u8aac\u660e\u3057\u305f\u3084\u308a\u65b9\u3092\u63a1\u7528\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p class=\"p30-t\">P.S.<br \/>\n<a href=\"https:\/\/www.suzukikenichi.com\/blog\/how-to-prevent-xml-sitemap-from-getting-indexed\/\">\u540c\u3058\u5185\u5bb9\u306e\u8a18\u4e8b<\/a>\u3092\u66f8\u3044\u305f\u3053\u3068\u304c\u3042\u308b\u306e\u3067\u3059\u304c\u30019 \u5e74\u4ee5\u4e0a\u3082\u524d\u306a\u306e\u3067\u50d5\u3082\u30ea\u30de\u30a4\u30f3\u30c0\u30fc\u76ee\u7684\u3067\u3082\u3046 1 \u5ea6\u66f8\u304d\u307e\u3057\u305f\u3002&#x1f609;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u691c\u7d22\u30a8\u30f3\u30b8\u30f3\u306e\u305f\u3081\u306b\u69cb\u6210\u3059\u308b\u30b5\u30a4\u30c8\u30de\u30c3\u30d7 \u30d5\u30a1\u30a4\u30eb\u3092\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3055\u305b\u308b\u5fc5\u8981\u306f\u306a\u3044\u3002X-Robots-Tag \u3067 noindex \u3092\u9001\u4fe1\u3059\u308b\u3068\u30b5\u30a4\u30c8\u30de\u30c3\u30d7\u304c\u691c\u7d22\u7d50\u679c\u306b\u51fa\u306a\u3044\u3088\u3046\u3067\u304d\u308b\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[26,226,227],"class_list":["post-9799","post","type-post","status-publish","format-standard","category-google-seo","tag-sitemap","tag-x-robots-tag","tag-noindex"],"_links":{"self":[{"href":"https:\/\/www.suzukikenichi.com\/blog\/wp-json\/wp\/v2\/posts\/9799","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=9799"}],"version-history":[{"count":0,"href":"https:\/\/www.suzukikenichi.com\/blog\/wp-json\/wp\/v2\/posts\/9799\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.suzukikenichi.com\/blog\/wp-json\/wp\/v2\/media?parent=9799"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.suzukikenichi.com\/blog\/wp-json\/wp\/v2\/categories?post=9799"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.suzukikenichi.com\/blog\/wp-json\/wp\/v2\/tags?post=9799"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}