Deflate Form of Compression

Jim,
I was reading that for webhosts using apache 2.x.x and have the mod deflate enabled, you can use this command
AddOutputFilterByType DEFLATE text/html text/plain text/xml
to have the server (apache) automatically compress the html of your site.

Does the command go in the HTAccess file, and if so, where in the HTAccess file would I put it? The top line? After a certain line?

Right now my HTAccess file looks like this:

# Use PHP5CGI as default
AddHandler application/x-httpd-php5 .html .php .htm

Redirect 301 /clean.html http://www.actualcures dotcom/hydrogen-peroxide-ends-gingivitis-keeps-tee
….[more 301 redirects]……
ErrorDocument 400 /index.php?error=400
ErrorDocument 404 /index.php?error=404
#ErrorDocument 500
ErrorDocument 503 /index.php?error=503

RewriteEngine on
RewriteBase /

#Redirect actualcures dotcom to www.actualcures dotcom
RewriteCond %{HTTP_HOST} ^actualcures dotcom
RewriteRule ^(.*)$ http://www.actualcures dotcom/$1 [r=301,L]

# -FrontPage-

IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*
.
.
…etc….

Thanks Jim,

Roger

Comments

  1. AMPC says:

    Hi Roger,

    The command would go in your httpd.conf, but I’ve never used it before, so I won’t be of much help. Most likely, you’ll have to have you hosting company insert that for you. Should be easy for them.

    Regards,

    Jim.

Speak Your Mind