Forum Moderators: phranque
The htaccess file starts of nice and easy:
RewriteEngine On
RewriteCond %{REMOTE_ADDR} ^[IP Address here]$
But I can't figure out how to get the additional headers to work. I need these two lines in the htaccess file for the specific address:
Header unset Cache-control:
Header append Cache-control: "no-transform"
Is there a way I can use rewrite to call a 2nd htaccess type file or add in those specific lines. Or am I going about this all the wrong way?
Thanks.
"Header" is not a mod_rewrite directive.
you need to have mod_headers [httpd.apache.org] installed for the "Header" directive to work.
Use a RewriteCond to test the IP address, and internally rewrite the request to a second copy of the file if it is requested by that IP address.
Then put your Header set directive inside a <FilesMatch> container to change the cache-control header when the second copy of the file is requested.
Jim