• Welcome to Sitemap Generator Forum.
 

Unsupported file format

Started by admin75, March 23, 2007, 10:45:28 AM

Previous topic - Next topic

admin75

Getting the above on a number of sites, and have read other threads and repeated the submission multiple times, and I am still getting the same message.

Now stuck and need to move on.

admin75

I vaguely remembered some issue before with another script generator that caused a similar problem, so I created a php file with any name you like and gave that to google. It sends a header and reads the xml file. This has validated after repeated attempts with a straight generated  xml file. I am not saying that it will solve the problem totally until I have tested it a few times.  :)

<?php

Header
("Content-Type: application/xml");

@
readfile("sitemap.xml");
?>

admin75

OK, well that worked. Very strange, because three sites needed this bit of code, two parsed perfectly OK straight to sitemap.xml, and they are all on the same server...

XML-Sitemaps Support

Hello,

thank you for the follow-up.
It looks like your host is not configured for XML mime type and doesn't include corresponding type in response http headers, so it is not recognized, unless you specify it directly in the script.