NGINX – redirect location by cookies

Just add if condition to your Nginx configuration file as the below: