How do I make Apache know which app directory to use for different domains?
I'm trying to create a site with CodeIgniter. I will have multiple domains served from this server, and what I am trying to do is to separate the HTTP requests for www.example1.com from the ones for www.example2.com and then redirect them to the their correct application folders. Say this is my directory structure: system application example1 example2 So this request www.example1.com/gallery/ would then be redirected to exmaple1 folder. Does anyone have any code example for doing this? Obviously you would need to use the ReWrite module... I looked around the Apache documentation but I couldn't