[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#503069: Solution!?



I think i found a solution.
To tell apache that we wanna stay in current dir (www) instead to search in filesystem just add /

Instead of RewriteRule ^(.*)$ $1.gz [QSA,L]
write :
RewriteRule ^(.*)$ /$1.gz [QSA,L]

Notice "/" before $1.gz !

Heres complete working example for js/css :

RewriteEngine On
AddType "text/_javascript_" .gz
AddType "text/css" .gz
AddEncoding gzip .gz

RewriteCond %{REQUEST_FILENAME} \.(js|css)$
RewriteCond %{HTTP:Accept-encoding} gzip
RewriteCond %{HTTP_USER_AGENT} !Safari
RewriteCond %{REQUEST_FILENAME}.gz -f
RewriteRule ^(.*)$ /$1.gz [QSA,L]

Please reply someone if its solving the problem, or if there are any complications.

--
Greetz,
Mateusz Kulesza.
-----------------------------------------------------------------------
mateusz [at] kulesza [dot] biz

Reply to: