gzip compression using .htaccess


You can compress static files such as image files (.jpg, .png, ....), Flash files (.swf), Style sheets (.css), Javascript (.js) to reduce size of fetched files and make pages load faster. You can do gzip compression on these files via .htaccess file   # 480 weeks <FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf)$"> Header set Cache-Control "max-age=290304000, public" </FilesMatch> # … Continue reading gzip compression using .htaccess

Problem with Apache 2 on linux not reading .htaccess files


I had a problem with my apache2 configuration that it seems not reading .htaccess files at all, I tried many solutions but nothing worked until I found this question on stackoverflow I'm not convinced with the solution but it worked fine for me ------------------------------------------------------------------------------------------------- To get this working, I added the following to /etc/apache2/httpd.conf (which is a … Continue reading Problem with Apache 2 on linux not reading .htaccess files