To create a sitemap for your Blogger (Blogspot) website, you can follow these steps:
Method 1: Using Blogger’s Automatic Sitemap
Blogger automatically generates a basic sitemap, and you can access it with this URL format:
- For posts sitemap: `https://yourblog.blogspot.com/sitemap.xml`
- For pages sitemap: `https://yourblog.blogspot.com/sitemap-pages.xml`
Replace
`yourblog.blogspot.com` with your blog's actual URL.
Method 2: Create a Custom Sitemap
If you want to generate a more comprehensive sitemap that includes both posts and pages:
1. Go to Blogger Dashboard:
- Sign in to your Blogger account.
- Select the blog for which you want to create a sitemap.
2. Navigate to Settings:
- In the Blogger dashboard, click on Settings from the left sidebar.
3. Enable Custom Robots.txt:
- Scroll down to the Crawlers and indexing section.
- Enable Custom robots.txt by switching the toggle on.
4. Add a Custom Sitemap:
- Click on Custom robots.txt and paste the following code:
User-agent: *
Disallow: /search
Allow: /
Sitemap: https://yourblog.blogspot.com/sitemap.xml
Sitemap: https://yourblog.blogspot.com/sitemap-pages.xml
- Replace `yourblog.blogspot.com` with your blog's URL.
5. Save the Settings.
This will ensure that both your blog posts and pages are indexed by search engines, improving the SEO of your Blogger website.