I have a Laravel app that works with multiple domains. First siteA.mydomain.com is a user website and then is siteB.mydomain.com that serves the REST API. In my old server I had only one Laravel app and siteA and siteB subdomains pointing to it.
Now I wanted to host my app on Dreamhost Shared hosting and I tried to upload te app to one website, and then mirroring another domain to that website, but it didn’t work.
I’ve tried this so far:
- Domain mirroring (Hosting my app with siteA as subdomain and mirroring siteB to siteA)
- Making another website for siteB and then changing the web location to be the same as siteB.
I thought the latest would work, but the non https siteB just redirected me to siteA, and https returned a 404 error page.
Anyone knows any workaround to this? The app is already installed and running on siteA, hosted on dreamhost. But I had to clone the laravel app and hosted in another server with siteB subdomain.
Thanks for your answers!