CodeIgniter Forums
htaccess + gzip - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: htaccess + gzip (/thread-28905.html)



htaccess + gzip - El Forum - 03-24-2010

[eluser]tnathos[/eluser]
Hi i need a help xd.. i try use gzip for compress css and js.. but i dont know what need put in the .htaccess-

so..

my htaccess is
Code:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?$1 [L]
RewriteCond %{HTTP_HOST} ^www\.site\.com$ [NC]  
RewriteRule ^(.*)$ http://site.com/$1 [R=301,QSA,L]

this htaccess its place in root site.

i have in a directory the css in.. root/files/css/

now.. what i need put in the htacess for use the gzip?

thanks


htaccess + gzip - El Forum - 08-25-2010

[eluser]zarpio[/eluser]
Same problem here... please reply anyone?


htaccess + gzip - El Forum - 08-25-2010

[eluser]danmontgomery[/eluser]
http://lmgtfy.com/?q=htaccess+gzip


htaccess + gzip - El Forum - 08-25-2010

[eluser]ericrjones1[/eluser]
Check this link out.

http://www.samaxes.com/2008/04/htaccess-gzip-and-cache-your-site-for-faster-loading-and-bandwidth-saving/

Just did a google search and found this.