I have the following situation:
- an Apache server on a Linux machine
- a Wordpress site at domain.com
- a Laravel application at software.domain.com
If a user is logged into the Laravel application, and they visit the Wordpress site, they should be redirected back to the Laravel application.
Is there a way to accomplish this?
I've been considering cookies, but in this case, the Laravel app would have to create a cookie, and the Wordpress site should be able to read it somehow.
Possibly some type of API call from Wordpress to Laravel could work, but I'm not sure how to set that up on the Wordpress side.
Perhaps an .htaccess solution is also possible, but I don't see how.