1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.4 Error submitting sitemap to google

Discussion in 'Troubleshooting and Problems' started by DaveL, Jan 31, 2015.

  1. DaveL

    DaveL Well-Known Member

    Submitting my sitemap via Google Webmaster tools im getting the following error:

    Issue: Unsupported file format
    Description: Your Sitemap does not appear to be in a supported format.

    I had no issues up until recently, so not sure whats causing this problem.

    If I goto the url for the sitemap - It brings up the download box, so its definitely there.

    Anyone know what might be causing this or where I should start looking?
  2. Mike

    Mike XenForo Developer Staff Member

    Your sitemap appears to have been double gzipped which Google doesn't appear to like. This appears to be caused by your server automatically gzipping responses. Ideally, you'll want to exempt this at least for sitemap.php.
    DaveL likes this.
  3. Martok

    Martok Well-Known Member

    @DaveL this happened on my site. I contacted my host and they sorted it for me.
    DaveL likes this.
  4. DaveL

    DaveL Well-Known Member

    Thank you. Will contact my host.
  5. DaveL

    DaveL Well-Known Member

    Hi Mike,

    Contacted my host an it does appear to be because I have Optimise Website enabled. Do you know how I would go about making the sitemap.php file exempt?

  6. Mike

    Mike XenForo Developer Staff Member

    Unfortunately I'm not aware of what that option does, so your host may need to provide additional guidance.
    DaveL likes this.
  7. DaveL

    DaveL Well-Known Member

    Thanks for the reply Mike. Its a setting in cPanel.


    Im presuming if I change it to "Compress the specified MIME types" - That would solve the sitemap issue? Would there be any other MIME types I could add that would benefit the speed of Xenforo?
  8. Tracy Perry

    Tracy Perry Well-Known Member

    Looks like that is the equivalent of the gzip structure for nginx.
    Here is what I use on my nginx setups:
    text/xml text/plain text/css application/json application/x-javascript application/vnd.ms-fontobject application/x-font-ttf font/opentype application/xml
    application/rss+xml application/atom+xml application/rdf+xml
    DaveL likes this.
  9. DaveL

    DaveL Well-Known Member

Share This Page