My problem. when going to:
http://example.com it redirects to http://subdomain.example.com
http://example.de it redirects to http://subdomain.example.com
www.example.com and www.example.de work fine.
i need to be able to redirect non www to www.example.com and www.example.de
any help would be greatly appreciated. i just launched a corporate site and these kinds of problems are not being well received.
Here's my setup.
Drupal multi sites:
www.example.com
www.example.com/subdirectory/
www.example.de
Non Drupal sites:
subdomain.example.com
This is what i have in my httpd.conf
NameVirtualHost *:80
Options Indexes FollowSymLinks
AllowOverride all
Order allow,deny
Allow from all
DocumentRoot /var/www/subdomain/html
ServerName subdomain.example1.com
ServerName www.example.com
DocumentRoot /var/www/example1.com/html
RewriteEngine on
ServerName www.example.com/subdirectory
DocumentRoot /var/www/example1.com/html
RewriteEngine on
ServerName www.example.de
DocumentRoot /var/www/example1.com/html
RewriteEngine on
Comments
re: Apache Virtual hosts issue with multisite
If I understand you rightly, you would handle example.com just as you would www.example.com:
ServerName example.com
DocumentRoot /wherever/drupal/is
I suppose there are different ways to do it :)
I think in a multisite set-up, you would point example.com (and www.example.com, and any of your drupal sites) to the same root drupal folder.
DocumentRoot /htdocs/drupal-x.x
ServerName example.com
DocumentRoot /htdocs/drupal-x.x
ServerName www.example.com
From there it's drupal's job to route requests to specific sites.
Have you tried something like above? What happens? Am I understanding your issue?