I have two domains both pointing to /var/www
:
www.example.com
: main domain, has cookiesstatic.example.com
: cookie-less domain for static content
I now want to free the static.example.com
domain from cookies using .htaccess
using following lines:
RequestHeader unset Cookie
Header unset Set-Cookie
My problem:
Since both domains share one .htaccess
file: How do I make sure these lines only apply to static.example.com
?