Multiple Domains & Databases

Hi - I need to run multiple websites each with it's own domain name, pointing to a unique directory under one hosting account.

The main site works fine and is installed in the root directory (/). I have created a new DB and folder /site1 installed and configured c5 without issues using mainsite.com/site1. Now I want to push the site live I can't get the forwarding to work correctly.

Basically newsite.com needs to go directly to the /site1 directory however it just ends up at mainsite.com and displaying the mainsite

I have tried pointing the newsite.com domain to the /site1 directory from the hosting control panel but that didn't work. The site.php is configured for the correct db and the base_url and dir_rel look ok??

Unfortunately neither worked. Investigating further this seems to be an issue with the .htaccess file. As the main site is the / directory therefore so is the .htaccess file for the main site - it's servicing all other requests which is why it keeps going back to the main. Hopefully there is a way of rewriting the htaccess to service multiple domains in the one root.