What is an XML sitemap and why should you have one?

A good XML sitemap is a roadmap to all important pages of a website. This roadmap gives Google guidance in determining what content can be found on a website. Having an XML sitemap can be beneficial for SEO, as Google can retrieve essential pages of a website very fast, even if the internal linking of a site isn’t flawless. Here, we’ll explain what they are and how they help you with your rankings.

What are XML sitemaps?

You want Google to crawl every important page of your website. But it can happen pages don’t have any – internal – links to them, which will make them hard to find. You can use an XML sitemap to make sure Google can find and crawl all pages you deem essential on your website. An XML sitemap contains all important pages of a site to help Google determine the structure of it:

XML Sitemap Yoast

The XML sitemap of Yoast.com

 

The XML sitemap above shows the XML sitemap of the Yoast website, which the Yoast SEO plugin created. If you read further down the article, we’ll explain exactly how our plugin helps you create the best XML sitemaps. If you’re not using our plugin, it could be that your own XML sitemap looks a bit different but it will work the same.

As you can see the XML sitemap of Yoast shows several ‘index’ XML sitemaps: …/post-sitemap.xml, …/page-sitemap.xml, …/video-sitemap.xml etc. This categorization makes a site structure as clear as possible. If you click on one of the index XML sitemaps, you’ll see all URLs in that specific sitemap. For example, if you click on ‘…/post-sitemap.xml’ you’ll see all the post URLs of Yoast.com (click on image to enlarge):

XML Post Sitemap Yoast

The post XML sitemap of Yoast.com

 

 

The date at the end of each line tells Google when we’ve last updated the post. This is beneficial for SEO because you want Google to crawl your updated content fast. When a date in the XML sitemap changes, Google knows that there is new content to crawl and index.

Sometimes it’s necessary to split an index XML sitemap because of the number of URLs in it. The limit to the number of URLs in one separate XML sitemap is set to 50.000 URLs. This means, for example, that if your website has over 50.000 posts, you should add two separate XML sitemaps for the post URLs. So, you’re actually adding another index XML sitemap. We’ve set the limit to 1.000 URLs in the Yoast SEO plugin to keep your XML sitemap loading fast.

What websites need an XML sitemap?

If we look at Google’s documentation, they say that XML sitemaps are beneficial for “really large websites”, for “websites with large archives”, for “new websites with just a few external links to it” and for “websites which use rich media content”.

We agree that these types of websites will definitely benefit from having an XML sitemap. However, at Yoast, we think an XML sitemap is beneficial for every website. On each website, you want Google to easily find the most important pages and to know how often those pages are updated. That’s why we’ve added this function to the Yoast SEO plugin. 

Optimize your site for search & social media and keep it optimized with Yoast SEO Premium »

Yoast SEO for WordPress pluginBuy now » Info

Which pages should be in your XML sitemap?

How do you decide which pages you need to include in your XML sitemap? Always start by thinking of the relevancy of a URL: when a visitor lands on a specific URL, is it a good result? Do you want visitors to land on that URL? If not, that URL probably shouldn’t be in your XML sitemap. However, if you really don’t want that URL to show up in the search results of Google you’ll need to add a ‘noindex, follow’ tag. Leaving it out of your XML sitemap doesn’t mean Google won’t index the URL. If Google can find it by following links, Google can index the URL.

Example 1: a starting blog

Let’s take the example of a new blog. The owner wants Google to find the new URLs of the blog fast to make sure his target group can find him in Google. So it’s a good idea to create an XML sitemap right away. The owner has created some describing categories for the first posts and the first posts have been written. The owner has also set up some tags to start with. However, there is not enough content yet to fill the tag overview pages with. Since these tag overview pages contain “thin content”, it’s not valuable to show visitors the tag overview pages yet. It’s, therefore, better to leave the tag URLs out of the XML sitemap for now. In this case, the tag pages could also be set to ‘noindex, follow’ because you don’t want people to land on those URLs from within the search results.

Example 2: media & images

Another example of an unnecessary XML sitemap is the ‘media’ or ‘images’ XML sitemap. Since your images are probably used within your pages and posts, the images are already included in your posts sitemap or your pages sitemap. Adding a separate ‘media’ or ‘images’ XML sitemap would be duplicate. We recommend leaving this one always out of your XML sitemap. Only when images are your main business you can make an exception. When you’re a photographer, for example, you probably do want to show a separate ‘media’ or ‘images’ XML sitemap to Google.

How to make Google find your XML sitemap

If you want Google to find your XML sitemap fast, you have to add it to your Google Search Console account. You can find the sitemaps in Search Console by navigating to ‘Crawl’ and then clicking on ‘Sitemaps’. You’ll immediately see if your XML sitemap is already added to Search Console. If not, click on the ‘Add/Test sitemap’ button which you see on the right of the arrow in the image below.

Google Search Console XML Sitemap Yoast

The XML sitemap of Yoast is added to Google Search Console

 

As you can see in the image, adding your XML sitemap can be helpful to check whether all pages in your sitemap are really indexed by Google. If there is a big difference in the ‘submitted’ and ‘indexed’ number of a certain sitemap, we recommend analyzing this further. Maybe there is an error which prevents some pages from being indexed or maybe you should just add more content or links to the content that’s not indexed yet.

Yoast SEO and XML sitemaps

Because of the importance of XML sitemaps, we’ve added this function to our Yoast SEO plugin. XML sitemaps are available for both the free and the Premium version of the plugin.

Yoast SEO creates an XML sitemap for your website automatically. You can find it by clicking on ‘XML Sitemaps’ in the sidebar of your WordPress install:

Yoast SEO tabs in WordPress backend

The XML Sitemaps tab in Yoast SEO

 

 

 

 

 

 

In the screen that follows you can enable or disable the XML sitemaps of your website. In addition to that, you can click on the ‘XML sitemap’ button to check your XML sitemap in your browser:

XML Sitemap settings in Yoast SEO

XML sitemap settings in Yoast SEO

In the tabs below the ‘enabled’ or ‘disabled’ toggle, you can find the different sitemaps you can in- or exclude from your XML sitemap: Users/Authors, Post Types and Taxonomies. On top of that, you can also exclude specific posts from the XML sitemap if you think the content of that post isn’t valuable enough.

Check out your own XML sitemap!

Now you’ve read this complete post, you know it’s important to have an XML sitemap, because having one can help your site’s SEO. By adding the right URLs to your XML sitemap you make sure Google can easily access your most important pages and posts. In addition to that, Google can also find updated content easily, so they know if a certain URL needs to be crawled again. Lastly, adding your XML sitemap to Google Search Console helps Google find your sitemap fast and, besides that, it allows you to check for sitemap errors to fix.

Now go check your own XML sitemap and see if you’re doing all of this correctly!

Read more: ‘WordPress SEO tutorial: definite guide to higher ranking’ »

Advertisements

Author: Search Engine Optimisation Company

Our team have been offering SEO expert services to clients since the early days of the internet. Whilst the tactics have evolved over the years, our overall goal by no means has and thats making sure our users web pages to rank on page 1 for appropriate keywords at the same time only using honest and long term strategies. Plan to Dominate the Search Engines? While many agencies are convinced that they have to resort to black hat SEO tactics to get results, we can get the 1st page rankings for all of our customers despite the fact that constantly guaranteeing we stick to strategies that are not frowned upon by the the search engines. What happens when you turn to black hat strategies? Without a doubt, you will get some early success, however the internet search engines will quickly discover what you are doing and you can face severe penalties which includes having your website banned with the google search results altogether. We work within guidelines of leading search engines such as Google, Yahoo and Bing! so you never need to be concerned about receiving any penalties as a result of the work we carry out for you.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s