Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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.

Issue

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.

Background

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

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: 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

1 Answer 1

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

 
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.