|
/ Documentation /Hands-Free SEO/ SureRank – Robots.txt File 

SureRank – Robots.txt File 

SureRank automatically generates a clean and optimized robots.txt file for your website, which can guide compliant crawlers about which paths to access. Robots.txt does not protect private content or reliably prevent indexing; use authentication for confidential content and noindex for public pages you want excluded from search.

What is robots.txt?

The robots.txt file is a simple text file located at the root of your domain that gives instructions to search engine bots on which pages or directories they are allowed (or disallowed) to crawl.

SureRank creates this file dynamically based on your site’s SEO settings, offering you the right balance between visibility and protection.

Edit Your Robots.txt File

You can edit your site’s robots.txt file directly from the WordPress dashboard using SureRank.

  1. Navigate to SureRank → Advanced Settings.
  2. Scroll to the Robots.txt Editor section.
  3. Add or modify the directives as needed.
  4. Click Save Changes.

For example:

User-agent: *
Disallow: /wp-admin/
Allow: /wp-admin/admin-ajax.php
Sitemap: https://yourwebsite.com/sitemap_index.xml

How to View Your Robots.txt File?

To check if the file is active on your site:

  1. Go to your website URL.
  2. Add /robots.txt to the end of your domain.

Example:

https://yourwebsite.com/robots.txt

If SureRank is active, you may see a file like this. The default sitemap URL is shown; if you changed the sitemap slug, use your actual live sitemap index URL.

User-agent: *
Disallow: /wp-admin/
Allow: /wp-admin/admin-ajax.php
Sitemap: https://yourwebsite.com/sitemap_index.xml

robotstxt file

Content Signals Line in robots.txt (SureRank Pro)

If Content Signals is turned on under SureRank → AI Ready → Content Signals, SureRank adds one more line to each group of the robots.txt that visitors and crawlers see. For example:

User-agent: *
Content-Signal: search=yes, ai-input=yes, ai-train=no
Disallow: /wp-admin/
Allow: /wp-admin/admin-ajax.php
  • The line sits right under User-agent: *, and under every other group in the file, so a crawler that has a group of its own reads it too. It does not appear in the Robots.txt Editor, and it does not need to be written there.
  • If a group in the editor already has a Content-Signal line, SureRank keeps it as written in that group. Every group without one gets the line of SureRank.
  • The line is not added while Discourage search engines from indexing this site is on in Settings → Reading.
  • To change what the line says, see How to Set Content Signals in SureRank.

Why Aren’t My Robots.txt Changes Appearing?

If your changes don’t appear after saving, your website may already have a physical robots.txt file in its root directory.

When a physical robots.txt file exists, the web server serves that file instead of the virtual robots.txt generated by SureRank. As a result, any changes made in the SureRank Robots.txt Editor will not be reflected on your website until the physical file is removed or renamed.

How to Check if a Physical Robots.txt File Exists

You can check whether your website has a physical robots.txt file by following these steps:

  1. Log in to your hosting account.
  2. Open File Manager or connect to your server using FTP.
  3. Navigate to your website’s root directory (commonly public_html or the WordPress installation directory).
  4. Look for a file named robots.txt

If this file exists, it is overriding the robots.txt managed by SureRank.

How to Resolve the Conflict

If you want SureRank to manage your robots.txt file, follow these steps:

  1. Download and keep a backup of the existing robots.txt file. Review its rules and identify the directives you need to preserve.
  2. Rename the physical robots.txt file in your site’s root directory when you are ready to switch to SureRank.
  3. Go back to SureRank → Advanced Settings → Robots.txt Editor and copy the required directives from your backup.
  4. Save the required robots.txt rules.
  5. Visit your robots.txt URL to confirm that the required rules are being served. Restore the backup if needed.

Note: If your hosting provider or another plugin automatically creates a physical robots.txt file, you’ll need to remove or update that file before SureRank’s Robots.txt Editor can take effect.

Troubleshooting Tips

If your changes still don’t appear after removing the physical robots.txt file:

  • Clear your website, server, or CDN cache.
  • Refresh the robots.txt page in an incognito/private browser window.
  • Temporarily disable any caching plugins and check again.
  • Ensure no other SEO or security plugin is generating or managing the robots.txt file.
Was this doc helpful?
What went wrong?

We don't respond to the article feedback, we use it to improve our support content.

Need help? Contact Support
Table of Contents
Scroll to Top