XML Sitemaps Generator

Author Topic: Unsupported file format  (Read 22109 times)

admin75

  • Registered Customer
  • Approved member
  • *
  • Posts: 3
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.

admin75

  • Registered Customer
  • Approved member
  • *
  • Posts: 3
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: [external links are visible to admins only]
<?php

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

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

admin75

  • Registered Customer
  • Approved member
  • *
  • Posts: 3
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...

XML-Sitemaps Support

  • Administrator
  • Hero Member
  • *****
  • Posts: 10624
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.
Oleg Ignatiuk
www.xml-sitemaps.com
Send me a Private Message

For maximum exposure and traffic for your web site check out our additional SEO Services.

 

SMF 2.0.12 | SMF © 2014, Simple Machines
XHTML RSS WAP2