Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7860429
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T22:17:04+00:00 2026-06-02T22:17:04+00:00

I am trying to deflate files based on the FilesMatch condition, I tried this

  • 0

I am trying to deflate files based on the FilesMatch condition, I tried this but it doesn’t deflate :

<FilesMatch \.js$>
SetOutputFilter Deflate
RewriteEngine on
RewriteRule /js/(.*.js) /pack.php?f=$1
</FilesMatch>

The rewrite rule works fine though.

Also, setting the SetOutputFilter Deflate outside the FilesMatch works as expected.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T22:17:05+00:00Added an answer on June 2, 2026 at 10:17 pm

    When apache rewrites a rule, it re-processes certain configurations (e.g <Directory>, <DirectoryMatch>, <Files>, <FilesMatch>) to match against the “re-written” URL. This appears to be your problem.

    Split your rules into two <FilesMatch> sections, one for .js$ files and another for /pack.php. Or better, move the re-write rule outside the <FilesMatch> section and use a single <Files pack.php> section.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to use deflate/gzip streams in C# but it appears that the files
I am trying to enable mod_deflate. I have Apache 2.0+ and tried this code
I'm trying to read remote text files using this code: function defdate(ipaddress) deffilePath =
Using httplib2 and urllib2, I'm trying to fetch pages from this url, but all
I'm trying to implement a PHP-based WebDAV server to be able to use it
I’m trying to upload files to Amazon S3 using AWS::S3 , but I’d like
i'm trying to create a zip script based on what I've found here but
I'm trying to use Zlib::Deflate.deflate on a massive file (4 gigs). There are obvious
Trying to make this jQuery filter that uses .find case-insensitive. For example, when the
Trying to figure out how I can do this properly. The print_r looks like

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.