Add a new sitemap to blogger
Here's a step-by-step guide on how to add a new sitemap to Blogger:
Prerequisites:
- You have a Blogger account and a blog set up.
- You have basic knowledge of HTML and XML.
Step 1: Create a new sitemap.xml file
- Open a text editor like Notepad or TextEdit.
- Create a new file and save it as
sitemap.xml
(make sure to include the.xml
extension). - In the file, add the following code:
<?xml version="1.0" encoding="UTF-8"?> <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> <url> <loc>https://yourblog.blogspot.com/</loc> <changefreq>daily</changefreq> <priority>1.0</priority> </url> </urlset>
Replace
https://yourblog.blogspot.com/
with your blog's URL.
Step 2: Add more URLs to the sitemap
- To add more URLs to the sitemap, you can add more
<url>
elements. For example:<?xml version="1.0" encoding="UTF-8"?> <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> <url> <loc>https://yourblog.blogspot.com/</loc> <changefreq>daily</changefreq> <priority>1.0</priority> </url> <url> <loc>https://yourblog.blogspot.com/your-post-1</loc> <changefreq>weekly</changefreq> <priority>0.8</priority> </url> <url> <loc>https://yourblog.blogspot.com/your-post-2</loc> <changefreq>monthly</changefreq> <priority>0.5</priority> </url> </urlset>
Replace
https://yourblog.blogspot.com/your-post-1
andhttps://yourblog.blogspot.com/your-post-2
with the URLs of your blog posts.
Step 3: Upload the sitemap to your Blogger blog
- Log in to your Blogger account and go to the "Settings" page.
- Click on "Search Preferences" and then click on "Sitemaps".
- Click on the "Add or remove a sitemap" button.
- Enter the URL of your sitemap file (e.g.
https://yourblog.blogspot.com/sitemap.xml
) and click "Save".
Step 4: Verify your sitemap
- Go to the Google Search Console (GSC) and sign in with your Google account.
- Click on "Sitemaps" and then click on "Submit a sitemap".
- Enter the URL of your sitemap file (e.g.
https://yourblog.blogspot.com/sitemap.xml
) and click "Submit". - Wait for Google to crawl and index your sitemap.
That's it! Your new sitemap should now be added to your Blogger blog and submitted to Google Search Console.