Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

share|improve this question
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:… – 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.

share|improve this answer

Your Answer


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.