Hello!

TOTAL NUBE QUESTION!! I understand that Drupal can host a number of sites with just 1 install base and I have a question about DNS.

My domains:

mysite1.com
mysite2.com
mysite3.com

What I want to do is have a multi site install, but when somoene types in mysite2.com they get actually directed to www.mysite2.com and (here is my core question) I want the URL that is in the address box of the browser to read www.mysite2.com, not www.mysite1.com/mysite2

Is there a way to do that?

Thanks.

S

Comments

excaliburst’s picture

Same issue as above.

What is needed. I think that this should be handled by the web-hotel... Or?

What do I need to tell them to get this rolling.

Thanks

Morten

markh_’s picture

Instructions are here:
http://drupal.org/node/540262

Applies to Drupal 6.x also.

To point mysite1.com to www.mysite1.com you can either use an alias or a redirect in the apache config. I think an alias is better.

Alias:

<VirtualHost *:80>
	ServerName www.mysite1.com
	ServerAlias mysite1.com
        ...
</VirtualHost>

Redirect:

<VirtualHost *:80>
	ServerName mysite1.com
	Redirect / http://www.mysite1.com
</VirtualHost>

If you don't have access to the apache config file, maybe it will also work in a .htaccess file. I don't use them so I'm not sure.