I have an internal rewrite in a .htaccess which does this (this is on a subdomain, just incase that effects things):
subdomain.domain.com/dir/file.css -> subdomain.domain.com/dir/file.css.php
and the rewrite is in:
subdomain.domain.com/.htaccess
and is:
RewriteEngine On
RewriteRule ^([^.]+)\.css$ /$1.css.php [NC,L]
Now, in this
subdomain.domain.com/dir/.htaccess
I have:
Header unset Content-Location
Header unset TCN
Header unset Vary
but on accesses to
http://subdomain.domain.com/dir/file.css
the Header unsets are being completely ignored. If I access the file by
http://subdomain.domain.com/dir/file.css.php
the Header unsets work. Any idea how to get it so the unsets are applied to
http://subdomain.domain.com/dir/file.css
accesses?
Thanks.
I've just had a further thought: maybe the headers Content-Location, TCN, Vary aren't appearing when I access the file by using
http://subdomain.domain.com/dir/file.css.php
not because of the .htaccess file, but because those thing don't apply in the case where a rewrite hasn't occurred?
Much confused.