Title: wp-sitemap.xml not generated
Last modified: June 3, 2024

---

# wp-sitemap.xml not generated

 *  [dantero](https://wordpress.org/support/users/dantero/)
 * (@dantero)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/wp-sitemap-xml-not-generated/)
 * Hello,
 * When I go to /sitemap.xml on my website, it redirects to wp-sitemap.xml, but 
   instead of generating a sitemap, the main page of my site is loaded. When I debug
   the php code;
 * wp-includes/sitemaps/class-wp-sitemaps.php line 200:
 * $provider = $this->registry->get_provider( $sitemap );
 * if ( ! $provider ) {
   return;}
 * $sitemap = ‘wp’ and get_provider returns null. So sitemap not generating and 
   my site’s homepage is loading.
 * When I go to /index-sitemap.xml instead of /wp-sitemap.xml, it works, but I am
   not sure if the page loaded here is a correct sitemap and I want to know why 
   wp-sitemap.xml is not working.

Viewing 1 replies (of 1 total)

 *  Moderator [threadi](https://wordpress.org/support/users/threadi/)
 * (@threadi)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/wp-sitemap-xml-not-generated/#post-17799618)
 * Have you checked the box against search engine visits under Settings > Reading?
   If so, that is the reason. Remove it and you will see a SitemapXML when you call
   up the URL.

Viewing 1 replies (of 1 total)

The topic ‘wp-sitemap.xml not generated’ is closed to new replies.

## Tags

 * [Fixing wordpress](https://wordpress.org/support/topic-tag/fixing-wordpress/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 3 participants
 * Last reply from: [threadi](https://wordpress.org/support/users/threadi/)
 * Last activity: [1 year, 11 months ago](https://wordpress.org/support/topic/wp-sitemap-xml-not-generated/#post-17799618)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
