Reputation: 11394
is it possible to have in .htaccess
(Apache 2.2) a url condition that when met it executes the RequestHeader directive? Something like:
if ( %{HTTP_HOST} == "example.com" ){
RequestHeader unset Set-Cookie
}
Upvotes: 3
Views: 1576
Reputation: 785276
You can use mod_setenvif
directive for this:
SetEnvIf Host ^(www\.)?example\.com$ NO_COOKIE
RequestHeader unset Set-Cookie env=NO_COOKIE
Upvotes: 3