Hosting multiple domains to a single doc root

Discussion in 'General' started by KenKnight, Jan 14, 2010.

  1. KenKnight

    KenKnight Member

    Hi all,

    Here's what we are trying to accomplish. We want multiple domains pointing to the same Document Root. Simple enough using DNS alias. The problem we have encountered is this;

    We start by assigning our client a sub-domained web site so we can build and demo the site to the client as we work on it. Once live we would add an alias for their full domain name.

    All the above works great unless we want the alias to redirect to a sub-folder. We are using Drupal with multi-sites as the backend and it appears as though there are some conflicts with the L redirect and the mod-rewrite stuff that Drupal does in their .htccess file. This has been somewhat confirmed by a couple of other threads I found in the forums here.

    The reason for having redirection to the subdirectory is this would give us the ability to implement newer versions of Drupal without having to change all sites at one time.

    Does anybody have any pearls of wisdom on how to best handle this?

    Thanks,
    Ken
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Just add them as alias domains in ispconfig. You can not use redirects as drupal uses redirects itself and this will give a conflict. If you need testing websites, create them as new websites with subdomains like test.yourdomain.com
     

Share This Page