[eluser]TheFuzzy0ne[/eluser]
Here's some code from my htaccess file that should do just that.
Code:
AddOutputFilterByType DEFLATE text/css text/html application/x-javascript application/javascript
<IfModule mod_deflate.c>
SetOutputFilter DEFLATE
SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-vary
SetEnvIfNoCase Request_URI \.(?:exe|t?gz|zip|bz2|sit|rar)$ no-gzip dont-vary
SetEnvIfNoCase Request_URI \.pdf$ no-gzip dont-vary
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
</IfModule>
That way you can just disable it from within CodeIgniter, since it's handled at a higher level. I'm not entirely sure whether or not that first line should appear within the condition block.