I need a welcome page for new visits. If a user don0t have the cookie stored, he will be redirected to welcome page. If the cookie is stored, nothing happens.
Header set Set-Cookie "visited=true"
RewriteEngine On RewriteBase /
RewriteCond %{HTTP_COOKIE} !^visited=true$ [NC]
RewriteRule .? /welcome.html [R=301,NC,L]
Cookie is working, but all users are being redirected.