I have a file like so:
subdomain.domain.com/dir/file.css.php
I have a rewrite to go from
subdomain.domain.com/dir/file.css
to
subdomain.domain.com/dir/file.css.php
which works fine.
In subdomain.domain.com/.htaccess if I put:
SetOutputFilter DEFLATE
and then access subdomain.domain.com/dir/file.css in a browser it's compressed fine.
If I move the compression line from
subdomain.domain.com/.htaccess
to a new .htaccess file here:
subdomain.domain.com/dir/.htaccess
then compression doesn't work for accesses to subdomain.domain.com/dir/file.css (nor direct accesses to subdomain.domain.com/dir/file.css.php bypassing the rewrite for that matter).
Why isn't the compression line working when it's here
subdomain.domain.com/dir/.htaccess
but is working fine when it's here:
subdomain.domain.com/.htaccess
?
Thanks.