Unsupported file format
« on: March 23, 2007, 10:45:28 AM »
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.
Re: Unsupported file format
« Reply #1 on: March 23, 2007, 11:50:28 AM »
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.  :)

Code: [Select]
<?php

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

@
readfile("sitemap.xml");
?>
Re: Unsupported file format
« Reply #2 on: March 23, 2007, 12:54:29 PM »
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...
Re: Unsupported file format
« Reply #3 on: March 23, 2007, 10:10:53 PM »
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.