Title: Xml Sitemap
Last modified: July 14, 2020

---

# Xml Sitemap

 *  Resolved [aorrow](https://wordpress.org/support/users/aorrow/)
 * (@aorrow)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/xml-sitemap-38/)
 * Hi, I have the free Yoast SEO plugin installed and I am using it to generate 
   a xml site map. After checking the site with RYTE I am getting an error message
   that the sitemap is not referenced in the robots.txt file. Should it be here 
   and if so how do I place a reference to it in the Robot.txt file please? Thanks
   in advance.
    -  This topic was modified 6 years, 2 months ago by [aorrow](https://wordpress.org/support/users/aorrow/).

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [devnihil](https://wordpress.org/support/users/devnihil/)
 * (@devnihil)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/xml-sitemap-38/#post-13123026)
 * [@aorrow](https://wordpress.org/support/users/aorrow/) If you want to add a directive
   to your **robots.txt** file to specify the location of your sitemap you can do
   so by adding the following line:
    ​ `Sitemap: https://YOURDOMAINNAME.COM/sitemap_index.
   xml`
 * You would of course need to replace ‘**YOURDOMAINNAME.COM**‘ with your site’s
   actual domain.
    ​ ​You can edit the **robots.txt** file by performing the following
   steps:
    -  • In WordPress, go to **SEO>Tools**
       • Click on ‘**File Editor**‘ • Under‘**
      robots.txt**‘ and beneath ‘**Edit the content of your robots.txt:**‘ is a 
      field from which you can directly edit your **robots.txt** file • After making
      any changes to the file, click ‘**Save changes to robots.txt**‘
 * We also have more information on this and editing the **robots.txt** file here:
   [https://kb.yoast.com/kb/how-to-edit-robots-txt-through-yoast-seo/](https://kb.yoast.com/kb/how-to-edit-robots-txt-through-yoast-seo/)
 *  Thread Starter [aorrow](https://wordpress.org/support/users/aorrow/)
 * (@aorrow)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/xml-sitemap-38/#post-13125245)
 * Thanks [@devnihil](https://wordpress.org/support/users/devnihil/)
 * I have followed your instruction however I do not see ‘File Editor’ I only see‘
   Import and Export’ and ‘Bulk Editor’ I am using free version of the plugin. Could
   the ‘File Editor’ be an option under the paid version only?
 *  Plugin Support [Maybellyne](https://wordpress.org/support/users/maybellyne/)
 * (@maybellyne)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/xml-sitemap-38/#post-13125309)
 * Hello [@aorrow](https://wordpress.org/support/users/aorrow/),
 * If you’re not seeing the File editor options in WordPress > SEO > Tools, it is
   due to incompatible permissions. Your server doesn’t have the write permission
   for Yoast SEO to edit the robots.txt and as such you’re not seeing the option.
   If the robots.txt file is [not writable](https://kb.yoast.com/kb/if-your-robots-txt-were-writeable-error)
   or your WordPress install has [disabled file editing](http://codex.wordpress.org/Hardening_WordPress#Disable_File_Editing),
   the previous steps may fail. Optionally, you can [edit at the server level](https://kb.yoast.com/kb/how-to-edit-robots-txt-through-yoast-seo/#server).
 *  Thread Starter [aorrow](https://wordpress.org/support/users/aorrow/)
 * (@aorrow)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/xml-sitemap-38/#post-13125371)
 * I see that’s very helpful thank you [@maybellyne](https://wordpress.org/support/users/maybellyne/).

Viewing 4 replies - 1 through 4 (of 4 total)

 The topic ‘Xml Sitemap’ is closed to new replies.

 * ![](https://ps.w.org/wordpress-seo/assets/icon-256x256.gif?rev=3419908)
 * [Yoast SEO - Advanced SEO with real-time guidance and built-in AI](https://wordpress.org/plugins/wordpress-seo/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-seo/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-seo/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-seo/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-seo/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-seo/reviews/)

## Tags

 * [sitemap](https://wordpress.org/support/topic-tag/sitemap/)
 * [Yoast](https://wordpress.org/support/topic-tag/yoast/)

 * 4 replies
 * 3 participants
 * Last reply from: [aorrow](https://wordpress.org/support/users/aorrow/)
 * Last activity: [6 years, 2 months ago](https://wordpress.org/support/topic/xml-sitemap-38/#post-13125371)
 * Status: resolved