{"id":133,"date":"2015-03-11T13:39:43","date_gmt":"2015-03-11T20:39:43","guid":{"rendered":"http:\/\/the-networks.com\/blog\/?p=133"},"modified":"2020-05-07T15:31:06","modified_gmt":"2020-05-07T22:31:06","slug":"make-xml-sitemap","status":"publish","type":"post","link":"https:\/\/the-networks.com\/blog\/make-xml-sitemap\/","title":{"rendered":"How Do I Make an XML Sitemap?"},"content":{"rendered":"<h2>What is an XML Sitemap Anyway?<\/h2>\n<p>An XML sitemap is a small file with lines of <a href=\"https:\/\/en.wikipedia.org\/wiki\/XML\" target=\"_blank\" rel=\"noopener noreferrer\">simple XML machine readable code<\/a> that list the HTML files, the image files, and the audio and video files that are part of a Web site.\u00a0 <a href=\"https:\/\/support.google.com\/webmasters\/answer\/183668?hl=en\" target=\"_blank\" rel=\"noopener noreferrer\">Google uses it<\/a> to easily see what pages and other files make up your Web site and how they are organized so it can crawl your site more efficiently.\u00a0 Every site should have an XML sitemap to help the search engine bots to know what files to find, crawl, and index on the site.\u00a0 Of course, the XML sitemap must be updated when the site has pages added or deleted from it as well.<\/p>\n<div id=\"attachment_172\" style=\"width: 584px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/the-networks.com\/blog\/wp-content\/uploads\/2016\/07\/XML-sitemap.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-172\" class=\"wp-image-172 size-full\" src=\"https:\/\/the-networks.com\/blog\/wp-content\/uploads\/2016\/07\/XML-sitemap.png\" alt=\"Two entries from the XML Sitemap for our Web site\" width=\"574\" height=\"162\" srcset=\"https:\/\/the-networks.com\/blog\/wp-content\/uploads\/2016\/07\/XML-sitemap.png 574w, https:\/\/the-networks.com\/blog\/wp-content\/uploads\/2016\/07\/XML-sitemap-300x85.png 300w\" sizes=\"auto, (max-width: 574px) 100vw, 574px\" \/><\/a><p id=\"caption-attachment-172\" class=\"wp-caption-text\">This image shows two entries from the XML Sitemap for our Web site<\/p><\/div>\n<p>Without making your eyes glass over from looking at raw code, just notice a couple things about this brief snippet.\u00a0 First, there are two entries; each begins with &lt;url&gt; and ends with &lt;\/url&gt;.\u00a0 Second, each of those entries has two pieces of information; first the URL of an HTML page of our site (inside the &lt;loc&gt; and &lt;\/loc&gt; tags), and second the last modified date &amp; time of that HTML file (inside the &lt;lastmod&gt; and &lt;\/lastmod tags).\u00a0 Pretty simple, yes?<\/p>\n<p>The entire file has a header with other information in it, and can have separate sections for each of the various file types listed; HTML, image, video, etc.\u00a0 We have spared you that complexity here since we just want to give you an introduction.<\/p>\n<p>A couple of items of note about these entries:\u00a0 We must be very specific in how the location and date\/time information is specified.\u00a0 Getting these wrong can cause the XML sitemap file to not work properly.<\/p>\n<h2>So, How Do We Make an XML Sitemap?<\/h2>\n<p>You could hand code it in a plain text editor, however, unless you are used to doing this it is not recommended.\u00a0 There are also some free tools that will crawl your site and create one for you.\u00a0 <a href=\"https:\/\/code.google.com\/archive\/p\/sitemap-generators\/wikis\/SitemapGenerators.wiki\" target=\"_blank\" rel=\"noopener noreferrer\">Google actually has a great resource listing showing a variety of tools available to do just that<\/a>.\u00a0 We have used both online tools and desktop utilities to generate these files for us.\u00a0 If you have a completely WordPress site, then there are WordPress plugins available to generate the XML sitemaps for you.\u00a0 If your site is a combination of\u00a0 static HTML pages and a WordPress blog, then one of the\u00a0 online tools is probably the better solution.<\/p>\n<p>Once you have a created or modified your XML site file you should test it using the testing tool that is available on your Google Search Console account.\u00a0 BTW, Google Search Console was also known as Google Webmaster Tools until earlier this year sometime.\u00a0 If you don&#8217;t have an account for your site, that is another &#8220;must have&#8221;.\u00a0 It&#8217;s free, and you can use it to test your XML sitemap, then submit it to Google once testing shows that it&#8217;s correct.<\/p>\n<p>The XML sitemap should be located in the &#8220;Web root&#8221; of your Web server file structure.\u00a0 That is where your home page is located.<\/p>\n<p>If you need help creating or updating an XML sitemap, or testing it, <a href=\"\/contact\/\" target=\"_blank\" rel=\"noopener noreferrer\">please feel free to contact us<\/a> and we&#8217;ll be happy to assist with that and all your needs for maintaining an effective Web presence for your business or organization.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>What is an XML Sitemap Anyway? An XML sitemap is a small file with lines of simple XML machine readable code that list the HTML files, the image files, and the audio and video files that are part of a Web site.\u00a0 Google uses it to easily see what pages and other files make up [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7,3],"tags":[],"class_list":["post-133","post","type-post","status-publish","format-standard","hentry","category-seo","category-web-site-development"],"_links":{"self":[{"href":"https:\/\/the-networks.com\/blog\/wp-json\/wp\/v2\/posts\/133","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/the-networks.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/the-networks.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/the-networks.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/the-networks.com\/blog\/wp-json\/wp\/v2\/comments?post=133"}],"version-history":[{"count":7,"href":"https:\/\/the-networks.com\/blog\/wp-json\/wp\/v2\/posts\/133\/revisions"}],"predecessor-version":[{"id":191,"href":"https:\/\/the-networks.com\/blog\/wp-json\/wp\/v2\/posts\/133\/revisions\/191"}],"wp:attachment":[{"href":"https:\/\/the-networks.com\/blog\/wp-json\/wp\/v2\/media?parent=133"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/the-networks.com\/blog\/wp-json\/wp\/v2\/categories?post=133"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/the-networks.com\/blog\/wp-json\/wp\/v2\/tags?post=133"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}