0

I’m pretty newbie to drupal and deploying stuffs. I’ve two separate drupal websites ready.

www.example.com
www.example.org

My directory structures on local machine for both websites are

wamp/www/example.com/sites/’all & default ‘ folder
wamp/www/example.org/sites/’all & default ‘ folder

These websites have complete different theme and database from each other. Now I want to go live for these two websites. But the problem is on hosting server they will provide me only 1 drupal installation.
I need both URL’s working. (There is a setting for URL redirection on hosting). But on hosting server, redirection via .htaccess is not running. (They said !!!).
So my question is how to host two complete different websites on server with two complete different URLs using same drupal code base? I’m using drupal 7. Any help or suggestion will be appreciated.

Thanks in advance…

3
  • You used domain names that belongs to commercial companies. In examples use example.com and example.org (with subdomains as needed) instead. Please edit your question. I'd prefer not to do that myself to avoid making it less useful for you.
    – Mołot
    Commented Jun 22, 2013 at 18:51
  • @Mołot Thanks for pointing that. I've no idea that these are commercial addresses. I've edited my question.
    – Never Quit
    Commented Jun 22, 2013 at 18:56
  • refere ostraining.com/blog/drupal/drupal-multi-sites
    – Never Quit
    Commented Jun 23, 2013 at 5:39

1 Answer 1

2

It looks like you are looking for Multisite approach. It's pretty easy to set up and to keep sites separate, but if one day you'll need to share anything between sites, you'll regret not using Domain Access.

If you are sure there will be no need to share data, in <drupal root>/sites create 2 subdirectories, like example.org and example.com, and put site-specific files (modules, themes, libraries and settings.php) into them. Point both domains to your Drupal (your provider should be able to help with that) and Drupal will take care to recognize what site is accessed.

It might be worth to consider Domain Access module.

The Domain Access project is a suite of modules that provide tools for running a group of affiliated sites from one Drupal installation and a single shared database.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.