I'm building the frontend marketing website for a web application. The frontend is WordPress on one server and the app is on another. We will set a cookie for users who are already customers. For returning customers, when they go to www.company.com, they should go to the web app. For new visitors without the cookie, when they go to to www.company.com, they should go to the WordPress site. How do I do this?
The web app is probably on nginx, but possibly apache. The WordPress will probably be on apache. I'm wondering if I use DNS, nginx, htaccess, or PHP to determine how to send visitors to one server vs. the other.