Disclosure: Hosting Canada is community-supported. We may earn a commission when you make a purchase through one of our links. Learn more.

To Set up Associations for Encoded Files

There are some browsers that can uncompress the encoded information on receiving it.

For allowing a client to see the file that is encoded, you need to make an .htaccess file by following the guidance and the instructions and also include the text below.

AddEncoding x-gzip .gz .tgz
AddEncoding x-compress .Z

The above code will instruct Apache Web Server to treat .tgz and .gz files as to be converted by x-gzip, and the .Z files to be converted by x-compress.