[wp-trac] [WordPress Trac] #21983: Sitemap xml feed from plugin is shown but 404 header added by WordPress if site has no posts

WordPress Trac wp-trac at lists.automattic.com
Mon Sep 24 11:06:58 UTC 2012


#21983: Sitemap xml feed from plugin is shown but 404 header added by WordPress if
site has no posts
-----------------------------+--------------------------
 Reporter:  Ov3rfly          |       Type:  defect (bug)
   Status:  new              |   Priority:  normal
Milestone:  Awaiting Review  |  Component:  General
  Version:  3.4.2            |   Severity:  normal
 Keywords:                   |
-----------------------------+--------------------------
 Installed a new site with only pages, no posts.

 Also installed the [http://technology.mattrude.com/2011/10/wordpress-
 sitemap-generator-plugin-2/ WordPress Sitemap Generator Plugin] with a
 modified template for the pages.

 Testing example.com/sitemap.xml in browser showed the xml with all the
 pages, all seemed fine.

 But then Google Webmaster Tools complained about a 404 not found for the
 /sitemap.xml url.

 Some testing showed that WordPress '''adds a 404 header to all feeds''',
 including the sitemap xml feed, '''if no posts exist''' in the website.

 Using a work-aound for now, [http://wordpress.org/support/topic/sitemap-
 xml-feed-is-shown-but-404-header-added-by-wordpress-if-site-has-no-posts
 details here], but would like to know this behaviour is to be considered
 as a bug.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/21983>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list