Last active
January 22, 2026 13:15
-
-
Save kobitoDevelopment/5f0dbc71078df43c166d7a94550fc224 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!-- | |
| 参照: https://developers.google.com/search/docs/crawling-indexing/sitemaps/build-sitemap?hl=ja | |
| 1ファイルで済むパターン | |
| 制限: | |
| - 最大 50,000 URL | |
| - 最大 50MB(非圧縮時) | |
| このファイル単体で上記制限内に収まる場合、インデックスファイルは不要 | |
| --> | |
| <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> | |
| <url> | |
| <loc>https://www.example.com/</loc> | |
| <lastmod>2026-01-22</lastmod> | |
| <changefreq>daily</changefreq> | |
| <priority>1.0</priority> | |
| </url> | |
| <url> | |
| <loc>https://www.example.com/about</loc> | |
| <lastmod>2026-01-15</lastmod> | |
| <changefreq>monthly</changefreq> | |
| <priority>0.8</priority> | |
| </url> | |
| <url> | |
| <loc>https://www.example.com/services</loc> | |
| <lastmod>2026-01-10</lastmod> | |
| <changefreq>monthly</changefreq> | |
| <priority>0.8</priority> | |
| </url> | |
| <url> | |
| <loc>https://www.example.com/contact</loc> | |
| <lastmod>2026-01-05</lastmod> | |
| <changefreq>yearly</changefreq> | |
| <priority>0.5</priority> | |
| </url> | |
| <url> | |
| <loc>https://www.example.com/blog/post-1</loc> | |
| <lastmod>2026-01-20</lastmod> | |
| <changefreq>never</changefreq> | |
| <priority>0.6</priority> | |
| </url> | |
| </urlset> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!-- | |
| 参照: https://developers.google.com/search/docs/crawling-indexing/sitemaps/build-sitemap?hl=ja | |
| サイトマップインデックスファイル | |
| 用途: | |
| - 50,000 URL または 50MB を超える場合に使用 | |
| - 複数のサイトマップファイルを束ねる | |
| 制限: | |
| - 最大 50,000 個のサイトマップを参照可能 | |
| - Search Console アカウントごとに最大 500 個のインデックスファイル | |
| 配置ルール: | |
| - 参照するサイトマップはインデックスファイルと同じディレクトリまたは下位階層に配置 | |
| --> | |
| <sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> | |
| <sitemap> | |
| <loc>https://www.example.com/sitemaps/sitemap_posts.xml</loc> | |
| <lastmod>2026-01-22</lastmod> | |
| </sitemap> | |
| <sitemap> | |
| <loc>https://www.example.com/sitemaps/sitemap_products.xml</loc> | |
| <lastmod>2026-01-21</lastmod> | |
| </sitemap> | |
| </sitemapindex> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!-- | |
| 参照: https://developers.google.com/search/docs/crawling-indexing/sitemaps/build-sitemap?hl=ja | |
| 記事ページ用サイトマップ | |
| このファイルには最大 50,000 URL まで記載可能 | |
| 50,000 URL を超える場合は sitemap_posts_2.xml などに分割する | |
| --> | |
| <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> | |
| <!-- URL 1 ~ 50,000 を記載(以下は例) --> | |
| <url> | |
| <loc>https://www.example.com/posts/1</loc> | |
| <lastmod>2026-01-22</lastmod> | |
| <changefreq>never</changefreq> | |
| <priority>0.6</priority> | |
| </url> | |
| <url> | |
| <loc>https://www.example.com/posts/2</loc> | |
| <lastmod>2026-01-21</lastmod> | |
| <changefreq>never</changefreq> | |
| <priority>0.6</priority> | |
| </url> | |
| <url> | |
| <loc>https://www.example.com/posts/3</loc> | |
| <lastmod>2026-01-20</lastmod> | |
| <changefreq>never</changefreq> | |
| <priority>0.6</priority> | |
| </url> | |
| <!-- ... 省略 ... --> | |
| <!-- <url><loc>https://www.example.com/posts/50000</loc></url> --> | |
| </urlset> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!-- | |
| 参照: https://developers.google.com/search/docs/crawling-indexing/sitemaps/build-sitemap?hl=ja | |
| 商品ページ用サイトマップ | |
| このファイルには最大 50,000 URL まで記載可能 | |
| 50,000 URL を超える場合は sitemap_products_2.xml などに分割する | |
| --> | |
| <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> | |
| <!-- URL 1 ~ 50,000 を記載(以下は例) --> | |
| <url> | |
| <loc>https://www.example.com/products/item-001</loc> | |
| <lastmod>2026-01-22</lastmod> | |
| <changefreq>weekly</changefreq> | |
| <priority>0.7</priority> | |
| </url> | |
| <url> | |
| <loc>https://www.example.com/products/item-002</loc> | |
| <lastmod>2026-01-21</lastmod> | |
| <changefreq>weekly</changefreq> | |
| <priority>0.7</priority> | |
| </url> | |
| <url> | |
| <loc>https://www.example.com/products/item-003</loc> | |
| <lastmod>2026-01-20</lastmod> | |
| <changefreq>weekly</changefreq> | |
| <priority>0.7</priority> | |
| </url> | |
| <!-- ... 省略 ... --> | |
| <!-- <url><loc>https://www.example.com/products/item-50000</loc></url> --> | |
| </urlset> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment