disable gzip on a single file?

Discussion in 'General' started by byronio, Jun 16, 2010.

  1. byronio

    byronio New Member

    I have found this to work globally:
    RewriteRule . - [E=no-gzip:1]

    But I have a single file, just one page on my entire site, that must have gzip compression disabled. Let's just say that it's "index.php."

    Can anyone please tell me how I'd modify the above line to disable gzip compression on just "index.php," for example.

    If so, thanks in advance.
  2. mistwang

    mistwang LiteSpeed Staff

    Just change it to

    RewriteRule index.php - [E=no-gzip:1]

    if the rewrite rule is used in .htaccess .

Share This Page