How can I redirect a request to the site root using htaccess, if there’s not a specific cookie set?
if the cookie “language_known” isn’t set to the value “yes”. RewriteCond %{HTTP_COOKIE} !language_known=true;? [NC] The condition is checking that the value is not “true” (string), not “yes”? However, the rule is also configured as a 301 (permanent) redirect, so this will be cached persistently by the browser. If the browser has redirected once, when the … Read more