How to Use the File Editor in Yoast SEO

As we contunue our series on Yoast SEO plugin for WordPress, we will now show you how to use the Yoast SEO File Editor tool. This tool allows you to easily access and edit your robots.txt and .htaccess files directly from the WordPress dashboard. It can save time since you would typically have to go to your cPanel File Manager or use an FTP client to access these files. The File Editor also allows WordPress users to make changes without allowing them access to your cPanel. First, we will show you how to create a robots.txt file, then show you how to modify and save your robots.txt and .htaccess files.

Using the File Editor

  1. Log into your WordPress Dashboard.
  2. Click SEO then Tools in the navigation menu.

  3. You will then be on the Yoast SEO Tools page, click the File editor link.

  4. You will see your robots.txt and .htaccess files listed if you have them. If you do not have an .htaccess file you can create one in cPanel, this is covered in our guide Where is my .htaccess File?. If you do not have a robots.txt file, you can click the Create robots.txt file button to make one.

  5. Edit your robots.txt file as needed. For more information on robots.txt rules, see our full guide on How to Stop Search Engines from Crawling your Website.

  6. Click the Save changes to robots.txt button.

    You will then see a message stating “Updated robots.txt“.

  7. Edit your .htaccess file as needed. For assistance on creating .htaccess rules see our .htaccess file reference list.

  8. Click the Save changes to .htaccess button to complete the change. You will not see an update notification.

Congratulations, now you know how to use the Yoast SEO File Editor tool! In the next guide we will show you how to use the Yoast SEO Bulk Editor.

Thoughts on “How to Use the File Editor in Yoast SEO

Leave a Reply