Solved

Drupal multi site: Installation question

Posted on 2011-02-16
3
473 Views
Last Modified: 2012-05-11
I have a Drupal 6 multi-site installation on a Windows Server 2008 box. I have 3 domains domainA1, domainB and domainC and they all use different databases. So far so good. Now I have domainA2 that should behave like domainA1. It is basically an alias to domainA1.

Unfortunately when I add them as ServerAlias in the http.conf it doesn't work. In that case the default Drupal site is displayed.

I see two theoretical solutions to my problem:
1.) Make Apache change a request to domainA2 into domainA1
2.) Get Drupal to handle requests to domainA2 as requests to domainA1.

Unfortunately I have no idea how to accomplish that. Or maybe there is a third way. I don't care as long as I can get my site to work.

Many thanks in advance!

regards,
Dirk.
0
Comment
Question by:dirkil2
  • 2
3 Comments
 
LVL 29

Expert Comment

by:Michael W
ID: 34915480
See if this helps some...

Multi-site on Windows
http://drupal.org/node/288126
0
 

Accepted Solution

by:
dirkil2 earned 0 total points
ID: 34940563
Found the problem myself. The solution is to have one main domain and then specify 301 forwards in an htaccess file like that:

RewriteCond %{HTTP_HOST} ^www\.domainA1\.de$ [NC] 
  RewriteRule ^(.*)$ http://www.domain.de/$1 [L,R=301]

Open in new window


Very important notice: You have to set 'AllowOverride All' in the httpd.conf otherwise it doesn't work. It took me 2 hourse of frustrating debugging to find this out.
0
 

Author Closing Comment

by:dirkil2
ID: 34978096
Found the solution myself.
0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Ubuntu 14 with Apache 7 75
Problem with .htaccess file 4 70
Page structure in SharePoint 2013 9 84
Issues installing SSL certificate into Apache Tomcat 3 97
This article shows how a content item can be identified directly or through translation of a navigation type. It then shows how this information can be used to create a menu for further navigation.
If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…

832 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question