By arlind on
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
Comments
That's not how it works
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.
.htaccess for Multisite in Shared Blueshost Server
Drupal
Hi Guys,
I have created 3 sites in my localhost and they are working fine. But when i moved the same to server, sub sites are not working fine. They are loading the base site instead of their own. Since its a shared server, cant change the apache settings, so i suppose there might be a way in .htaccess for this solution from reviewing other posts around the forums. Please help me in hosting 3 sites in the shared server correctly. find below my .htaccess details for your reference,
Can you suggest what is to be changed in this file...