Editing Your Site’s Robots.txt File

4 min read
Important:
Editing your robots.txt file is an advanced feature. Making changes to this file can cause issues with your site appearing in search results. Wix Customer Care cannot help you with any changes you make to your robots.txt file.
A robots.txt file tells search engines which of your site's pages to include or skip in their search results. Search engines check your site's robots.txt file when they crawl and index your site. This doesn't guarantee that search engines will or won't crawl a page or file, but it can help prevent less accurate indexing attempts.

If you want better control of crawl requests to your site, you can edit your robots.txt file. 
Tip:
  • You can prevent search engines from indexing an individual page in your site's Editor. Learn how to in Editor and Editor X.
  • You can also get more control over how search engines index your site's pages using the robots meta tag. For example, can use a "nofollow" tag to tell search engines not to follow any links on a page. Learn more about the robots meta tag
In this article, learn more about:

Understanding your robots.txt file

The robots.txt file contains instructions to allow or disallow certain requests from search engines. The “allow” command tells crawlers the links that they can follow, while the “disallow” command tells crawlers the links that they can't follow. It also includes the URL of your site's sitemap file.
You can view your site's robots.txt file by adding "/robots.txt" to your root domain. An example would be: https://www.mystunningwebsite.com/robots.txt
An example of a robots txt file
Want to learn more?

Editing your robots.txt file

You can edit your site's robots.txt file using the Robots.txt Editor in your site's SEO Dashboard. Your site’s robots.txt file allows search engine bots to access all of your site's pages by default. Bots may not be able to access certain pages if they are: 
Before you make changes to your robots.txt file, we recommend checking Google's guidelines and limitations for robots.txt files.
Important:
Editing your site's robots.txt file may cause issues with your site's pages appearing in search results. 

To edit your robots.txt file:

  1. Go to your SEO Dashboard.
  2. Select Go to Robots.txt Editor under Tools and settings.
  3. Click View File
  4. Add your robots.txt file info by writing the directives under This is your current file.
Editing your robots.txt file
  1. Click Save Changes
  2. Click Save
Tip:

Resetting your robots.txt file

If you changed your site's robots.txt file and want to change it back, you can reset it to its default state using the Robots.txt Editor in your site's SEO Dashboard.

To reset your robots.txt file:

  1. Go to your SEO Dashboard.
  2. Select Go to Robots.txt Editor under Tools and settings.
  3. Click View File
  4. Click Reset to Default.
Resetting your robots.txt file to its default state
  1. Click Reset.
Tip:

Robots.txt error in Wix Site Inspection or Google Search Console

You may sometimes see errors such as Blocked by robots.txt in your Wix Site Inspection report or your Google Search Console account
If you see an error like this, you don't need to edit your robots.txt file, especially if you never edited it before. Instead, you should check your pages for the following settings:
If you need to update a page, Wix automatically updates your robots.txt after you publish the page. If you change your site's settings, your robots.txt file is updated immediately.
After you make a change, search engines will update their cached version of your robots.txt file the next time that they crawl your site. If you need to update it sooner, you can try submitting your homepage to search engines for reindexing.

Did this help?

|