I have a single app, which shares a large amount of code in PHP but which has 3 separate application-level folders depending on the domain name entered. IE:
How do I customize Apache, either through .htaccess or through Heroku settings so that connections to
app.example.com are directed to the frontend directory?
I have thought about doing this via a master index file which imports the correct app from its folder using an include statement based on domain but this seems fairly hacky to me and I would rather do this at the server config level that from within the app. Have looked all over and have been unable to find any useful information.
I use Heroku for hosting by default which only allows one web process type and which associates to a given site root.