pointing a group of domains to the same directory

4 posts / 0 new
Last post
#1 Sun, 06/15/2008 - 04:43
memox

pointing a group of domains to the same directory

Hello,

How do I point a group of domains to the same directory? Obviously that'd be accomplished with a template but how exactly?

Sun, 06/15/2008 - 07:17
andreychek

<b>memox wrote:</b>
<div class='quote'>How do I point a group of domains to the same directory? Obviously that'd be accomplished with a template but how exactly?</div>

Howdy,

One way to do that would be to:

* Create the directory by setting up a new Virtual Server using one of those domains (through &quot;Create Virtual Server&quot;)

* Setup all the other domains as &quot;Aliases&quot; of the domain you setup above -- go into &quot;Create Virtual Server&quot;, and choose &quot;Alias of your_domain.com&quot;.

Have a good one,
-Eric

Sun, 06/07/2009 - 07:24
SteveHeinsch

I just create the domains normally and then use an htaccess file to redirect to the one domain.
for each server:
this will direct all www.domain.net and domain.net to www.domain.com
RewriteCond %{HTTP_HOST} ^domain.net$ [OR]
RewriteCond %{HTTP_HOST} ^www.domain.net$
RewriteRule ^/?(.*)$ http://www.domain.com/$1 [R=301,L]

Sun, 06/07/2009 - 07:24
SteveHeinsch

I just create the domains normally and then use an htaccess file to redirect to the one domain.
for each server:
this will direct all www.domain.net and domain.net to www.domain.com
RewriteCond %{HTTP_HOST} ^domain.net$ [OR]
RewriteCond %{HTTP_HOST} ^www.domain.net$
RewriteRule ^/?(.*)$ http://www.domain.com/$1 [R=301,L]

Topic locked