htaccess setup of Multi-site on a shared host

arlind - January 4, 2009 - 20:31

Hi,

I'm trying to use Drupals Multi-site, but I can't get htaccess to redirect to my drupal modules and theme css/pix-files.

With htaccess I can redirect any request into any subdirectory on the same domain, but how can I redirect to a directory on the other domain on the same server.

Directories:

From:
/shared/domain-one.com/sites/themes/

To:
/shared/domain-two.com/sites/themes/

With htaccess I can only redirect within the original domain, but not from one to the other. In PHP I just write the full path.

How can I redirect files on one domian to the other?

Thanks :-)
Bo

That's not how it works

yelvington - January 4, 2009 - 21:18

Your question does not make sense.

Drupal's multisite feature serves multiple sites out of a single codebase -- and a single directory structure.

Apache serves all the sites from the same directory. Drupal figures out which site to serve.

You should not alter the .htaccess file.

The proper filesystem should be

/sites/example1.com/settings.php for example1
/sites/example2.com/settings.php for example2

You rarely need to create modules and themes directories inside the site directories. Leave them in /sites/all/.

You SHOULD create a files directory in each site's directory, and configure that site to keep files there.

 
 

Drupal is a registered trademark of Dries Buytaert.