Last Updated on August 14, 2021 by Amit
This article will show you how to create a sitemap for a blog hosted on Google Blogger . You will be able to use the sitemap for both types of blogs a self hosted blogger blog or a hosted blogger blog.
A self hosted blogger’s blog is a blog with your custom domain ie www.example.com and a hosted blog on Blogger is a blog using the blogspot subdomain ie . example.blogspot.com .
The one big problem with Google Blogger is that it doesn’t have an option to add XML sitemap . On WordPress we can use plugins to create XML sitemap or create our own sitemap using FTP but blogger doesn’t provide any options to create an XML based sitemap of our blog.
But There is a 100% working and suggested by experts workaround to add a sitemap to your blogger blog . I will show you how you can add your sitemap to blogger within a few minutes but first let’s understand why we need a sitemap for our blog.
Why you need a blogger sitemap
Sitemap is an important file for your blog as it contains all public links of your website or blog and tells search engines about all the link structure of your blog. Search engines like Google ,Bing and Yahoo need Sitemap to better understand the link structure of your blog and it makes the crawling easier and quick.
On Blogger you can not use an XML based Sitemap but there is a good workaround to add your sitemap by using the blogger Atom feed URL . The feed file on your blogger blog is updated automatically when you create a post or page.
You will need to edit your blogger robots.txt file in order to be able to add atom feed file based sitemap to blogger.
How to add Sitemap to blogger
The best way to add Sitemap to blogger is by editing your blogger robots.txt file. You will need to enable it on your blogger dashboard first.
To enable robots.txt file,
Go to settings on your blogger dashboard :
And then go to the Crawlers and indexing settings
On this page , you will need to enable custom robots.txt support. Just click on the toggle button to enable it and then click on robots.txt to edit the file.
Put the following code to your robots.txt .
Make sure to replace www.example.com with your blogger domain name :
User-agent: * Disallow: /search Allow: / Sitemap: https://www.example.com/atom.xml?redirect=false&start-index=1&max-results=500
Save the file. That’s it.
Search engines will now be able to read your Sitemap from robots.txt file.
The atom.xml file contains all public links of your blogger blog so all search engines will be able to read it and index your blog URLs quickly.
I hope this article was helpful. Thanks so much for reading.