Skip to main content

Close
Get the best research tool on the web today,and free!
Connect with people with common interests!

saved by5 people, first bybeTech on 2007-01-18, last byalfred westerveld on 2008-05-02

  • RewriteEngine on
    RewriteOptions Inherit

    #Check to see if browser can accept gzip files.
    ReWriteCond %{HTTP:accept-encoding} (gzip.*)

    #make sure there's no trailing .gz on the url
    ReWriteCond %{REQUEST_FILENAME} !^.+\.gz$

    #check to see if a .gz version of the file exists.
    RewriteCond %{REQUEST_FILENAME}.gz -f

    #All conditions met so add .gz to URL filename (invisibly)
    RewriteRule ^(.+) $1.gz [L]