enabling gzip compression

Status
Not open for further replies.

pandit

New Member
Messages
27
Reaction score
0
Points
0
Dear Admin,

Presently I am using edhanced Corporate account.
Pls let me know how can I enable gzip compression.

Thank You
 

garrettroyce

Community Support
Community Support
Messages
5,609
Reaction score
252
Points
63
This must be enabled through your .htaccess file located in the parent directory of any files and any subdirectories on which you want this enabled. Here is an example:

Code:
# BEGIN GZIP
<ifmodule mod_deflate.c>
# Combine the below two lines - I've split it up for presentation
AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css
  application/x-javascript application/javascript
</ifmodule>
# END GZIP

From here: http://www.thejackol.com/htaccess-cheatsheet/
 

pandit

New Member
Messages
27
Reaction score
0
Points
0
Thanks alot

kindly tell me this will compress all CSS, JS, HTML, PHP, and all kind of images?
Edit:
one more thing pls tell me Whiling combining the two lines, whether I have to put a space between css and application or they have joined without any space.

(css application) OR (cssapplication)
 
Last edited:

garrettroyce

Community Support
Community Support
Messages
5,609
Reaction score
252
Points
63
From what I can tell, you should not use this on image types. Images don't compress well anyways because they are already compressed, for the most part.

Use a space between the two. Sorry, the original author wasn't very clear :D
 
Last edited:

garrettroyce

Community Support
Community Support
Messages
5,609
Reaction score
252
Points
63
I'm going to escalate this to staff attention. I don't think that mod_deflate is enabled. You may not be able to use this feature. A staff member should be able to give you the answer.
 
Status
Not open for further replies.
Top