Hi SiNNuT, thanks for your reply.
I have checked with host and mod_deflate is enabled, they didn't mention anything about nginx.
The compression appears to work on whichever version is being rewritten (i.e non www to www)
This curl output shows gzip working on the 301 Moved Permanently version
HTTP/1.1 301 Moved Permanently Date: Tue, 30 Jun 2015 12:07:18 GMT Server: Apache X-Frame-Options: SAMEORIGIN Location: http://www.motoringstuff.net/ Vary: Accept-Encoding Content-Encoding: gzip Content-Length: 20 Content-Type: text/html; charset=iso-8859-1
and not working on the 200 OK version
HTTP/1.1 200 OK Date: Tue, 30 Jun 2015 12:07:24 GMT Server: Apache Set-Cookie: wire=4ikn9vccnl6si2gj2vurg116g1; path=/; HttpOnly Expires: Thu, 19 Nov 1981 08:52:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Pragma: no-cache Content-Type: text/html; charset=utf-8
I have tried putting the AddOutputFilterByType DEFLATE command at various places in the .htaccess file.
I am not sure how to trace where the problem lies as my host says it must be something in my .htaccess that is causing the issue.
Only other thing is that I am running PHP Fast CGI, could this be of any relevance or related?
Any ideas of things to try would be much appreciated.
Tommy