Apache .htaccess Guide, Tutorials and Articles

Apache .htaccess Guide & Tutorial >>

Setting up Associations for Encoded Files

Some browsers are capable of uncompressing encoded information as they receive it.
 
To enable a client to see that a file is encoded, create a .htaccess file following the main instructions and guidance, and include the following text:
 

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

 
This tells the Apache Web Server to treat .gz and .tgz files as encoded by x-gzip, and .Z files as encoded by x-compress.

Next Article: Preventing requests with invalid characters
Previous Article: Ensuring media files are downloaded instead of played

Post Comment

Your Name:
Your Comment: