Back to Community

Why Can't I See the File Editor in Yoast SEO? Troubleshooting the Missing robots.txt Tool

11 threads Sep 16, 2025 PluginYoast seo

Content

If you've gone to Yoast SEO > Tools to edit your robots.txt or .htaccess file only to find the File Editor is missing, you're not alone. This is a common point of confusion for many WordPress users. This guide will explain why the tool disappears and the steps you can take to resolve it.

What is the Yoast SEO File Editor?

The File Editor is a convenient feature within the Yoast SEO plugin that allows you to create and modify your site's robots.txt file and view your .htaccess file directly from your WordPress admin dashboard, eliminating the need to use FTP.

Why is the File Editor Missing?

The File Editor is intentionally hidden if your WordPress installation does not meet two critical technical requirements. This is a security and permissions measure, not a bug or a limitation of the free version of Yoast SEO. The two primary reasons are:

  1. WordPress File Editing is Disabled: The most common cause is a security directive in your site's wp-config.php file. This line disallows file editing from within the WordPress dashboard:
    define( 'DISALLOW_FILE_EDIT', true );
  2. Incorrect Server File Permissions: Even if file editing is enabled in WordPress, your web server must have the correct permissions to allow the software to write to the robots.txt file in your site's root directory. If the server is locked down, the tool will not appear.

How to Fix the Missing File Editor

Here are the most effective solutions, starting with the most common.

Solution 1: Enable File Editing in wp-config.php

You will need to access your wp-config.php file via FTP or your hosting provider's file manager.

  1. Connect to your site using an FTP client or access your host's file manager.
  2. Locate the wp-config.php file in your website's root directory.
  3. Edit the file and search for this line: define( 'DISALLOW_FILE_EDIT', true );
  4. If you find it, change true to false or delete the line entirely.
  5. Save the file and upload it back to your server, overwriting the old one.
  6. Check Yoast SEO > Tools again. The File Editor should now be visible.

Note: Some hosting providers or security plugins add this directive for safety. If you are uncomfortable editing this file, contact your hosting provider's support team for assistance.

Solution 2: Check Server File Permissions

If the DISALLOW_FILE_EDIT line is not present or is already set to false, the issue is likely server-level file permissions.

  1. You need to ensure your server allows WordPress to write to the robots.txt file.
  2. This typically involves using an FTP client or file manager to adjust the permissions (CHMOD) of your site's root directory and the robots.txt file itself. The correct permissions can vary by host.
  3. This process is highly technical and host-specific. The most efficient path is to contact your web hosting provider's support and ask them to "verify that server-level permissions allow WordPress to write to the robots.txt file." They can quickly check and adjust this for you.

Solution 3: Edit the File Directly on the Server

If enabling the File Editor is not possible or desirable, you can always manage these files directly.

  1. Use FTP or your host's file manager to navigate to your website's root directory (usually public_html, www, or named after your site).
  2. Look for the robots.txt file. If it doesn't exist, you can create a new text file and name it robots.txt.
  3. Edit the file with a text editor, save it, and upload it to your root directory.

What About the .htaccess File?

The same rules apply to the .htaccess editor within Yoast SEO. It will be missing if file editing is disabled or server permissions are incorrect. The solutions above will also restore access to the .htaccess editor.

Conclusion

The missing File Editor in Yoast SEO is almost always a result of WordPress security settings or server permissions, not a problem with the plugin itself. By checking your wp-config.php file and working with your hosting provider, you can usually regain access to this helpful tool. If not, using FTP to edit the file directly is a reliable alternative.