CodeIgniter Forums

Full Version: htaccess + gzip
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[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

El Forum

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

El Forum

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

El Forum

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

http://www.samaxes.com/2008/04/htaccess-...th-saving/

Just did a google search and found this.