Translate

Search This Blog

Monday, 31 March 2025

How to fix robot.txt in blogspot

 Fixing the robots.txt file in Blogspot (Blogger) is essential for proper indexing and crawling of your site. Here's how you can do it:

  1. Access Blogger Settings:

    • Log in to your Blogger account.

    • Go to the Settings section and scroll down to Crawlers and Indexing.

  2. Enable Custom :

    • Turn on the Custom option.

    • Click on the Edit button to modify the file.

  3. Customize Your File:

    • Add the following code as a starting point:

      User-agent: *
      Disallow: /search
      Allow: /
      Sitemap: https://yourblog.blogspot.com/sitemap.xml
      

      Replace yourblog.blogspot.com with your actual blog URL.

  4. Save Changes:

    • After editing, save the changes to apply the new robots.txt file.

  5. Verify in Google Search Console:

    • Use the URL Inspection Tool in Google Search Console to check if the changes are effective.

No comments:

Post a Comment