Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I'm using Google Webmaster Tools to get my forum out there, and when I go to submit the sitemap I get the following error:

Your Sitemap appears to be an HTML page. Please use a supported sitemap format instead.

I've gotten this on numerious directories and files. I thought /public_html/forums/store_sitemap would do it, but I got two of the exact same error message. I've even tried downloading and uploading a sitemap.xml document, but it gave me the same thing. It's the same error message for everything. I'd like to keep this as automated as possible since vBulletin can generate a new sitemap upon my choosing.

share|improve this question
    
Hard to say what could be the problem without seeing the file in question. –  Max Oct 14 '13 at 9:30
    
Here is the PHP that autogenerates the .xml file: vivalanation.com/forums/xmlsitemap.php I did get more into it. I found that the permissions were set so people couldn't see the board when they were unregistered, which meant that Google couldn't access the file. I set up all the permissions properly now. Now here is the kicker, if I test it using the above link, it works, no errors. If I submit it, I get the error above. –  Whitechapel Oct 14 '13 at 13:00
    
Here is the result of the test: i.imgur.com/ZlAPjNO.png And here is the result of the submission: i.imgur.com/caE2Eyq.png So it's passing the test but failing the submission for some reason. –  Whitechapel Oct 14 '13 at 13:18

1 Answer 1

I downloaded your sitemap file using wget and ran it through xmllint which checks it for errors. You appear to have a problem with the character encoding.

$ wget http://www.vivalanation.com/forums/xmlsitemap.php?fn=vbulletin_sitemap_thread_0.xml.gz
$ xmllint xmlsitemap.php\?fn=vbulletin_sitemap_thread_0.xml.gz 
xmlsitemap.php?fn=vbulletin_sitemap_thread_0.xml.gz:1234: parser error : Input is not proper UTF-8, indicate encoding !
Bytes: 0xF1 0x6F 0x6C 0x2D
<loc>http://www.vivalanation.com/forums/showthread.php?395-Espa�ol-Que-se-vayan-

Google won't be able to read your file unless you fix the UTF-8 encoding issues.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.