Linking one subdomain to another

jbenda

New member
Joined
Mar 31, 2006
Messages
2
Location
Netherlands
I would like to link one subdomain to another subdomain (link product1.myproducts.com to product2.myproducts.com). All the code is the same for both sites, but based on the URL different content is loaded from the DB and a different stylesheet is loaded.

It's not good enough to just add a cname to the DNS because it won't be able to find the subsite (I tried). I probably have to create a link in the directory of /domains/myproducts.com/ name it product2 and link it to /domains/myproducts.com/product1 as well.

Am I right about this? Can I do this using just DirectAdmin? I only have very little Unix experience and do not want to use Telnet if that's at all possible.

Hope someone can help me.

Jeroen
 
You're close. Are you linking subdomains created by DA or domains created by DA?

If you've created the subdomains as DA domains, then you can create an alias which should work, though you'll need your own php code to manage the CSS and database content based on the httpd host header.

If you've created the subdomain a sa DA subdomain you'll have to create a link inside the public_html directory, and you'll have to do that through a shell login.

Jeff
 
Back
Top