{"id":187,"date":"2021-07-05T03:57:53","date_gmt":"2021-07-05T03:57:53","guid":{"rendered":"https:\/\/www.normalbreathing.com\/blog\/?p=187"},"modified":"2021-07-07T04:58:03","modified_gmt":"2021-07-07T04:58:03","slug":"one-sitemap-for-two-wp-sites-blog-subdirectory","status":"publish","type":"post","link":"https:\/\/www.normalbreathing.com\/blog\/one-sitemap-for-two-wp-sites-blog-subdirectory\/","title":{"rendered":"One Sitemap for Two WP Sites: WP Main Site and WP Blog (in Subdirectory)"},"content":{"rendered":"<h1>Common Sitemap for WP Main Site and WP Blog (in Subdirectory)<\/h1>\n<h2>How to create one sitemap for two WP sites: one WP is for the main site sitemap.xml and another for the blog with its own WP<\/h2>\n<h3>Making one common sitemap for two WP sites with one WordPress in subfolder<\/h3>\n<p>We got a challenge to have a common sitemap for Google indexing for 2 WP sites so that new pages from both WP sites will appear automatically in the common sitemap for both sites. In our case, we have WP for the site <a href=\"https:\/\/www.normalbreathing.com\" target=\"_blank\" rel=\"noopener\">https:\/\/www.normalbreathing.com<\/a> and another WP for the site <a href=\"https:\/\/www.normalbreathing.com\/blog\/.\" target=\"_blank\" rel=\"noopener\">https:\/\/www.normalbreathing.com\/blog\/.<\/a><\/p>\n<p><strong>Solution:<\/strong>\u00a0Create a file sitemap-all.xml with all sitemaps and upload it in the main directory. In our case, it should include <a href=\"https:\/\/www.normalbreathing.com\/sitemap.xml\" target=\"_blank\" rel=\"noopener\">https:\/\/www.normalbreathing.com\/sitemap.xml<\/a> for the main site and <a href=\"https:\/\/www.normalbreathing.com\/blog\/sitemap.xml\" target=\"_blank\" rel=\"noopener\">https:\/\/www.normalbreathing.com\/blog\/sitemap.xml<\/a><br \/>\nSubmit the sitemap with both sitemaps within to Google:<br \/>\n<a href=\"https:\/\/www.normalbreathing.com\/sitemap-all.xml\" target=\"_blank\" rel=\"noopener\">https:\/\/www.normalbreathing.com\/sitemap-all.xml<\/a><\/p>\n<p>A sitemap can be submitted in the form of a TXT (text) file. In this case, it has only 2 lines:<\/p>\n<p>https:\/\/www.normalbreathing.com\/sitemap.xml<br \/>\nhttps:\/\/www.normalbreathing.com\/blog\/sitemap.xml<\/p>\n<p>The name of this file with both sitemaps is https:\/\/www.normalbreathing.com\/sitemap-all.txt<\/p>\n<p>One can make manually one such sitemap file for all WP sites that are within the same domain name. For example, one can include there sitemaps for the forum, Amazon shop, etc.. In this case, the united sitemap (for Google) can look like this:<\/p>\n<p>https:\/\/www.normalbreathing.com\/sitemap.xml<br \/>\nhttps:\/\/www.normalbreathing.com\/blog\/sitemap.xml<br \/>\nhttps:\/\/www.normalbreathing.com\/forum\/sitemap.xml<br \/>\nhttps:\/\/www.normalbreathing.com\/shop\/sitemap.xml<\/p>\n<p>When new pages are created, they will be automatically included in the main (or united) sitemap.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Common Sitemap for WP Main Site and WP Blog (in Subdirectory) How to create one sitemap for two WP sites: one WP is for the main site sitemap.xml and another for the blog with its own WP Making one common sitemap for two WP sites with one WordPress in subfolder We got a challenge to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"footnotes":""},"categories":[48],"tags":[],"class_list":["post-187","post","type-post","status-publish","format-standard","hentry","category-sitemap"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>One Sitemap for Two WP Sites: WP Main Site and WP Blog (in Subdirectory) - NormalBreathing Blog: Buteyko Method, Breathing Retraining and Health<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.normalbreathing.com\/blog\/one-sitemap-for-two-wp-sites-blog-subdirectory\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"One Sitemap for Two WP Sites: WP Main Site and WP Blog (in Subdirectory) - NormalBreathing Blog: Buteyko Method, Breathing Retraining and Health\" \/>\n<meta property=\"og:description\" content=\"Common Sitemap for WP Main Site and WP Blog (in Subdirectory) How to create one sitemap for two WP sites: one WP is for the main site sitemap.xml and another for the blog with its own WP Making one common sitemap for two WP sites with one WordPress in subfolder We got a challenge to [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.normalbreathing.com\/blog\/one-sitemap-for-two-wp-sites-blog-subdirectory\/\" \/>\n<meta property=\"og:site_name\" content=\"NormalBreathing Blog: Buteyko Method, Breathing Retraining and Health\" \/>\n<meta property=\"article:published_time\" content=\"2021-07-05T03:57:53+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-07-07T04:58:03+00:00\" \/>\n<meta name=\"author\" content=\"Artour Rakhimov\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Artour Rakhimov\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.normalbreathing.com\\\/blog\\\/one-sitemap-for-two-wp-sites-blog-subdirectory\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.normalbreathing.com\\\/blog\\\/one-sitemap-for-two-wp-sites-blog-subdirectory\\\/\"},\"author\":{\"name\":\"Artour Rakhimov\",\"@id\":\"https:\\\/\\\/www.normalbreathing.com\\\/blog\\\/#\\\/schema\\\/person\\\/5883fa849e73eabad1f4735855f77a9e\"},\"headline\":\"One Sitemap for Two WP Sites: WP Main Site and WP Blog (in Subdirectory)\",\"datePublished\":\"2021-07-05T03:57:53+00:00\",\"dateModified\":\"2021-07-07T04:58:03+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.normalbreathing.com\\\/blog\\\/one-sitemap-for-two-wp-sites-blog-subdirectory\\\/\"},\"wordCount\":312,\"articleSection\":[\"Sitemap\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.normalbreathing.com\\\/blog\\\/one-sitemap-for-two-wp-sites-blog-subdirectory\\\/\",\"url\":\"https:\\\/\\\/www.normalbreathing.com\\\/blog\\\/one-sitemap-for-two-wp-sites-blog-subdirectory\\\/\",\"name\":\"One Sitemap for Two WP Sites: WP Main Site and WP Blog (in Subdirectory) - NormalBreathing Blog: Buteyko Method, Breathing Retraining and Health\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.normalbreathing.com\\\/blog\\\/#website\"},\"datePublished\":\"2021-07-05T03:57:53+00:00\",\"dateModified\":\"2021-07-07T04:58:03+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.normalbreathing.com\\\/blog\\\/#\\\/schema\\\/person\\\/5883fa849e73eabad1f4735855f77a9e\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.normalbreathing.com\\\/blog\\\/one-sitemap-for-two-wp-sites-blog-subdirectory\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.normalbreathing.com\\\/blog\\\/one-sitemap-for-two-wp-sites-blog-subdirectory\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.normalbreathing.com\\\/blog\\\/one-sitemap-for-two-wp-sites-blog-subdirectory\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.normalbreathing.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"One Sitemap for Two WP Sites: WP Main Site and WP Blog (in Subdirectory)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.normalbreathing.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.normalbreathing.com\\\/blog\\\/\",\"name\":\"NormalBreathing Blog: Buteyko Method, Breathing Retraining and Health\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.normalbreathing.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.normalbreathing.com\\\/blog\\\/#\\\/schema\\\/person\\\/5883fa849e73eabad1f4735855f77a9e\",\"name\":\"Artour Rakhimov\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/1f1a5385a3db1fcce81008e49d16f53ebe3b095e3ac229dcccf803cafd1e9ecc?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/1f1a5385a3db1fcce81008e49d16f53ebe3b095e3ac229dcccf803cafd1e9ecc?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/1f1a5385a3db1fcce81008e49d16f53ebe3b095e3ac229dcccf803cafd1e9ecc?s=96&d=mm&r=g\",\"caption\":\"Artour Rakhimov\"},\"url\":\"https:\\\/\\\/www.normalbreathing.com\\\/blog\\\/author\\\/admin-nb-blog-dg67eld89wh6w\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"One Sitemap for Two WP Sites: WP Main Site and WP Blog (in Subdirectory) - NormalBreathing Blog: Buteyko Method, Breathing Retraining and Health","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.normalbreathing.com\/blog\/one-sitemap-for-two-wp-sites-blog-subdirectory\/","og_locale":"en_US","og_type":"article","og_title":"One Sitemap for Two WP Sites: WP Main Site and WP Blog (in Subdirectory) - NormalBreathing Blog: Buteyko Method, Breathing Retraining and Health","og_description":"Common Sitemap for WP Main Site and WP Blog (in Subdirectory) How to create one sitemap for two WP sites: one WP is for the main site sitemap.xml and another for the blog with its own WP Making one common sitemap for two WP sites with one WordPress in subfolder We got a challenge to [&hellip;]","og_url":"https:\/\/www.normalbreathing.com\/blog\/one-sitemap-for-two-wp-sites-blog-subdirectory\/","og_site_name":"NormalBreathing Blog: Buteyko Method, Breathing Retraining and Health","article_published_time":"2021-07-05T03:57:53+00:00","article_modified_time":"2021-07-07T04:58:03+00:00","author":"Artour Rakhimov","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Artour Rakhimov","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.normalbreathing.com\/blog\/one-sitemap-for-two-wp-sites-blog-subdirectory\/#article","isPartOf":{"@id":"https:\/\/www.normalbreathing.com\/blog\/one-sitemap-for-two-wp-sites-blog-subdirectory\/"},"author":{"name":"Artour Rakhimov","@id":"https:\/\/www.normalbreathing.com\/blog\/#\/schema\/person\/5883fa849e73eabad1f4735855f77a9e"},"headline":"One Sitemap for Two WP Sites: WP Main Site and WP Blog (in Subdirectory)","datePublished":"2021-07-05T03:57:53+00:00","dateModified":"2021-07-07T04:58:03+00:00","mainEntityOfPage":{"@id":"https:\/\/www.normalbreathing.com\/blog\/one-sitemap-for-two-wp-sites-blog-subdirectory\/"},"wordCount":312,"articleSection":["Sitemap"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.normalbreathing.com\/blog\/one-sitemap-for-two-wp-sites-blog-subdirectory\/","url":"https:\/\/www.normalbreathing.com\/blog\/one-sitemap-for-two-wp-sites-blog-subdirectory\/","name":"One Sitemap for Two WP Sites: WP Main Site and WP Blog (in Subdirectory) - NormalBreathing Blog: Buteyko Method, Breathing Retraining and Health","isPartOf":{"@id":"https:\/\/www.normalbreathing.com\/blog\/#website"},"datePublished":"2021-07-05T03:57:53+00:00","dateModified":"2021-07-07T04:58:03+00:00","author":{"@id":"https:\/\/www.normalbreathing.com\/blog\/#\/schema\/person\/5883fa849e73eabad1f4735855f77a9e"},"breadcrumb":{"@id":"https:\/\/www.normalbreathing.com\/blog\/one-sitemap-for-two-wp-sites-blog-subdirectory\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.normalbreathing.com\/blog\/one-sitemap-for-two-wp-sites-blog-subdirectory\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.normalbreathing.com\/blog\/one-sitemap-for-two-wp-sites-blog-subdirectory\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.normalbreathing.com\/blog\/"},{"@type":"ListItem","position":2,"name":"One Sitemap for Two WP Sites: WP Main Site and WP Blog (in Subdirectory)"}]},{"@type":"WebSite","@id":"https:\/\/www.normalbreathing.com\/blog\/#website","url":"https:\/\/www.normalbreathing.com\/blog\/","name":"NormalBreathing Blog: Buteyko Method, Breathing Retraining and Health","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.normalbreathing.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.normalbreathing.com\/blog\/#\/schema\/person\/5883fa849e73eabad1f4735855f77a9e","name":"Artour Rakhimov","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/1f1a5385a3db1fcce81008e49d16f53ebe3b095e3ac229dcccf803cafd1e9ecc?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/1f1a5385a3db1fcce81008e49d16f53ebe3b095e3ac229dcccf803cafd1e9ecc?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/1f1a5385a3db1fcce81008e49d16f53ebe3b095e3ac229dcccf803cafd1e9ecc?s=96&d=mm&r=g","caption":"Artour Rakhimov"},"url":"https:\/\/www.normalbreathing.com\/blog\/author\/admin-nb-blog-dg67eld89wh6w\/"}]}},"_links":{"self":[{"href":"https:\/\/www.normalbreathing.com\/blog\/wp-json\/wp\/v2\/posts\/187","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.normalbreathing.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.normalbreathing.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.normalbreathing.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.normalbreathing.com\/blog\/wp-json\/wp\/v2\/comments?post=187"}],"version-history":[{"count":3,"href":"https:\/\/www.normalbreathing.com\/blog\/wp-json\/wp\/v2\/posts\/187\/revisions"}],"predecessor-version":[{"id":191,"href":"https:\/\/www.normalbreathing.com\/blog\/wp-json\/wp\/v2\/posts\/187\/revisions\/191"}],"wp:attachment":[{"href":"https:\/\/www.normalbreathing.com\/blog\/wp-json\/wp\/v2\/media?parent=187"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.normalbreathing.com\/blog\/wp-json\/wp\/v2\/categories?post=187"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.normalbreathing.com\/blog\/wp-json\/wp\/v2\/tags?post=187"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}