I need help pointing me in the right direction for setting the ContentType returned by Apache for content produced by WordPress. I'm having trouble figuring out why WordPress is returning incorrect headers.


The specific problem is that our Wordpress blog pages are being downloaded as a file rather than displayed by Internet Explorer and Chrome v21.

Content-Type: application/x-gzip is being returned by the server.

I'm told that I should expect Content-Type: text/html.


The URL is http://www.bitesizeirishgaelic.com/blog/.

  • If you have access, post (and/or examine) your apache confs for any setting referencing /blog. – KM. Oct 17 '12 at 20:23
  • Hmm, the httpd.conf doesn't mention blog. – eoinoc Oct 17 '12 at 20:48
  • Mm ... could there be a WP plugin causing this ... ? Look at this: wordpress.org/support/topic/… – KM. Oct 18 '12 at 14:16
  • I don't think so, as I tested with all plugins turned off. Adding my own answer below for the record. – eoinoc Oct 18 '12 at 16:07

My host helped solve this in the end:

The most common causes for this behavior is an issue with the PHP handler or the AddHandler variable in an .htaccess file. I reset your PHP handler to suPHP, which it already was set to, and restarted Apache. That resolved the issue.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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