Edit the robots.txt file for Blogger

Zápisník experimentátora

Blogger's default setting prohibits indexing of pages that are on the search path /search. If you use labels on a blog, they will be banned by default because they are on the same path. If you want to have them indexed, use this steps.

Default file robots.txt

This looks like a robots.txt file that will create Blogger for your blog.

User-agent: Mediapartners-Google
Disallow: 

User-agent: *
Disallow: /search
Allow: /

Sitemap: https://[name-of-your-blog].blogspot.com/sitemap.xml

Modified file robots.txt

This is how to edit the file.

User-agent: Mediapartners-Google
Disallow: 

User-agent: *
Disallow: /search
Allow: /
Allow: /search/label

Sitemap: https://[name-of-your-blog].blogspot.com/sitemap.xml

This will ensure that the search results are still ignored on search path /search?q=[what], but all labels on path /search/label/[your-label] will be indexed.


27.04.2018


Menu