Running Craft from two subdirectories We are trying to add Craft alongside another CMS. I currently have Craft setup with the Craft app directory above web root and then two web accessible sub-directories as follows:


blog
offer


Each subdirectory has a Craft index.php file in it, pointing to the one craft app directory above web root.

My issue now is trying to serve up a different set of pages based on which sub-directory the user accesses (ie. "www.domain.com/offer" or "www.domain.com/blog"). I thought I could add routes to do this but they don't seem to work as I'd hoped.

Are routes the right way to do this? I thought I could have defined a route of "blog/" to load a specific template but that does not work (I assume that first URL segment isn't available to the route based on having the index.php file in that directory?).

Is there another way to handle this that I haven't thought of?

Thanks,
Mike
There's a whole slew of PHP constants you can define in each public index.php file to separate out the templates, config settings, etc. for each of the sites.

It's a very similar method we use for https://craftcms.com, too (just based on subdomains instead of subfolders.