Addon Domains

ironj221

New member
Joined
Mar 26, 2009
Messages
1
I've spent the past hour trying to figure this out, and would appreciate some help.

I know how to park domains. However, I want the domain to go to a directory. For example:

Primary Domain: example.com
Parked Domain: yellow.com

Currently yellow.com goes to: example.com main directory
I want yellow.com to go to: example.com/yellow

Thank you!
 
First stop thinking like Cpanel. There are no addon domains in DirectAdmin.

After adding yellow.com you can then use Site Redirection to redirect it to example.com/yellow.

Why you would want to do that I have no idea. As soon as you add the domain its already "parked" with a default page.
 
I'm having the same problem.
The problem is, when you parked an extra domain, you can't tell it to go to a subdirectory of the main domain.

f.e.
Primary Domain: example.com
Parked Domain: yellow.com (should go to example.com/yellow)

You should be able to choose the parked domain and tell it where to go on the primary domain.
How can it be done? Is there a correct htaccess for it?
 
Seems that DA does the opposite of it, redirect a directory to a domain?
 
Hello,

The answer is basically what floyd said.

1) Create a full domain called yellow.com
2) In the public_html, redirect to example.com/yellow with an .htaccess or index.php.


OR

Create an alias domain pointer called yellow.com, on the main example.com domain.
The example.com/index.php can then look at what the "Host:" header says.. if it spots yellow.com as the host header, then redirect to example.com/yellow.

Many ways of doing it.

John
 
Back
Top