Change default location public_html per domain

hires

Verified User
Joined
Oct 10, 2006
Messages
26
Location
Netherlands
Hello All,

Is it possible to add domains to DirectAdmin and change the default location for every domain, so: change the default location per domain? Or is it in another way possible to let a specific domain get his data from a location (the public_html folder) within another domain?

I hope it's clear what I mean.

Thanks in advance!

EDIT: i spoke with the customer who asked this question and he told me that he wants to recoqnize what domain is used and depending on which domain is given in the browser the concent and design of the website is shown. But it must be two independent websites! So not a simple forward. Is that possible?
 
Last edited:
Isn't the use of a .htaccess file the same as a redirect? I think it is. The customer says he wants to keep the websites as two seperate websites.
 
.htaccess is not any kind of a redirect... this is a place where you can set redirects and other directives. You can use mod_rewrite for the purposes. So it can be done with:

1. symlinked public_html between domains within one account
2. mod_rewrite in .htaccess, or PHP/PERL script to detect domain.
 
Back
Top