I need a script that will detect if the user has a specific cookie and if they do when they click on a link on the website it will redirect them to a specific page
If they do not have that cookie, then redirect to a different page.
if the cookie matches "cookie name" and the var "domain.com"
then redirect to /a
if the cookie does not match
then redirect to /b