I have been creating a site and checking it\'s speed through gtmetrix.com. I used the following .htaccess file to compress the .js, .css<
.htaccess
.js, .css<
Here is a syntax to use with file extensions.
SetOutputFilter DEFLATE