mod_deflate htaccess question


I am trying to compress pages using gzip. If I put the following in my root htaccess file, will it compress my whole site, or would I need to put it in each directory/htaccess file that I have?


<ifModule mod_deflate.c>
    <filesMatch "\\.(js|css|html|shtml|php|txt)$">
        SetOutputFilter DEFLATE

Everything defined in the root of the site applies to all directories below it, unless explicitly overridden in those subdirectories .htaccess files.
So yes, only defining it in the root it fine :slight_smile:

Thanks, I’ll give it a go