﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
21983	Sitemap xml feed from plugin is shown but 404 header added by WordPress if site has no posts	Ov3rfly		"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."	defect (bug)	closed	normal		General	3.4.2	normal	invalid		
