Submit Updated Robots.txt to Google | Google Search Central  |  Documentation  |  Google for Developers (original) (raw)

Update your robots.txt file

To update the rules in your existing robots.txt file, download a copy of your robots.txt file from your site and make the necessary edits.

Download your robots.txt file

You can download your robots.txt file various ways, for example:

Edit your robots.txt file

Open the robots.txt file you downloaded from your site in a text editor and make the necessary edits to the rules. Make sure you use thecorrect syntax and that you save the file with UTF-8 encoding.

Upload your robots.txt file

Upload your new robots.txt file to the root directory of your site as a text file named robots.txt. The way you upload a file to your site is highly platform and server dependent. Check out our tips for finding help withuploading a robots.txt file to your site.

Refresh Google's robots.txt cache

During the automatic crawling process, Google's crawlers notice changes you made to your robots.txt file and update the cached version every 24 hours. If you need to update the cache faster, use the Request a recrawl function of therobots.txt report.