Title: [Plugin: Google XML Sitemaps] robots usage when using WordPress alongside static site
Last modified: August 19, 2016

---

# [Plugin: Google XML Sitemaps] robots usage when using WordPress alongside static site

 *  Resolved [Eric H](https://wordpress.org/support/users/eheller/)
 * (@eheller)
 * [15 years, 12 months ago](https://wordpress.org/support/topic/plugin-google-xml-sitemaps-robots-usage-when-using-wordpress-alongside-static-site/)
 * This is an awesome plugin. My question: I’ve added a WordPress blog to my existing(
   static HTML) site installed to the /blog directory. I already have a robots.txt
   file at the root of my static website.
 * In this root level robots.txt I have added a line to the /blog sitemap, like 
   this:
 *     ```
       User-agent: *
       sitemap: http://www.mysite.com/sitemap.xml
       sitemap: http://www.mysite.com/blog/sitemap.xml
       ```
   
 * Question: If I have checked the box for “Add Sitemap URL to the Virtual Robots.
   txt file” in the Sitemap settings page, should I keep the reference to the /blog
   sitemap in the root-level robots.txt file, or am I confusing the search engines?
 * Thanks for the help!
 * Eric
 * [http://wordpress.org/extend/plugins/google-sitemap-generator/](http://wordpress.org/extend/plugins/google-sitemap-generator/)

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

 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [15 years, 12 months ago](https://wordpress.org/support/topic/plugin-google-xml-sitemaps-robots-usage-when-using-wordpress-alongside-static-site/#post-1512343)
 * Since you already have the sitemap referenced in a physical `robots.txt` file,
   you should probably uncheck the “Add Sitemap URL to the Virtual Robots.txt file”
   option.
 *  Thread Starter [Eric H](https://wordpress.org/support/users/eheller/)
 * (@eheller)
 * [15 years, 12 months ago](https://wordpress.org/support/topic/plugin-google-xml-sitemaps-robots-usage-when-using-wordpress-alongside-static-site/#post-1512380)
 * Awesome, thanks much. I wonder if this is the reason the blog keeps getting spidered
   by Google but not indexed…anyway, that’s a bigger topic but perhaps this has 
   had an impact.
 * Thanks again!
 * Eric

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

The topic ‘[Plugin: Google XML Sitemaps] robots usage when using WordPress alongside
static site’ is closed to new replies.

 * 2 replies
 * 2 participants
 * Last reply from: [Eric H](https://wordpress.org/support/users/eheller/)
 * Last activity: [15 years, 12 months ago](https://wordpress.org/support/topic/plugin-google-xml-sitemaps-robots-usage-when-using-wordpress-alongside-static-site/#post-1512380)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
