To edit the file for your Blogspot (Blogger) site, follow these steps:
Sign in to Blogger: Log in to your Blogger account.
Access Settings: Navigate to the "Settings" section in your Blogger dashboard.
Enable Custom : Under "Crawlers and Indexing," find the option to enable the custom file and turn it on.
Add Code: Paste your custom code into the provided field. Here's an example of a basic file:
User-agent: * Disallow: /search Allow: / Sitemap: https://yourblogurl.com/sitemap.xml
Replace
https://yourblogurl.com/sitemap.xml
with the actual URL of your sitemap.Save Changes: Click "Save" to apply the changes.
You can verify your file by visiting https://yourblogurl.com/robots.txt
in your browser.
No comments:
Post a Comment