s0l1dsn8k3
10-31-2006, 01:55 PM
My account has a main domain and a secondary domain that is already parked to this main domain.
I have two new domains, say a.com and b.com. These are separate from the main and secondary domains, so I probably needs to add these as Addon Domains.
I would like to keep a.com and b.com separate from each other, yet point to the same script that I would like to manually install. (Question 1) Is it possible to have both a.com and b.com point to the same directory, yet when typing b.com in the browser would not redirect the browser's address to a.com??
I have tried Addon Domain and added a.com (directory public_html/a; just typed 'a' in the directory field of Addon Domain, not 'public_html/a'. I'm just showing the relative location of 'a'). But if I add b.com and set the directory to be the same as a.com, the process fails.
I have also tried adding b.com to a separate directory (public_html/b) and tried to use .htaccess to redirect b.com's files to the physical location of a.com's directory (public_html/a; where the script is located). But because I'm not as knowledgeable with Apache's .htaccess, I could not get this to work. (Question 2) Is it possible to use .htaccess directives (such as from mod_rewrite, mod_alias) to redirect file access of public_html/b to public_html/a??
I know I can do simple PHP scripts to do include() of files in another directory but I prefer not to have any PHP files other than in public_html/a. Thanks in advance.
I have two new domains, say a.com and b.com. These are separate from the main and secondary domains, so I probably needs to add these as Addon Domains.
I would like to keep a.com and b.com separate from each other, yet point to the same script that I would like to manually install. (Question 1) Is it possible to have both a.com and b.com point to the same directory, yet when typing b.com in the browser would not redirect the browser's address to a.com??
I have tried Addon Domain and added a.com (directory public_html/a; just typed 'a' in the directory field of Addon Domain, not 'public_html/a'. I'm just showing the relative location of 'a'). But if I add b.com and set the directory to be the same as a.com, the process fails.
I have also tried adding b.com to a separate directory (public_html/b) and tried to use .htaccess to redirect b.com's files to the physical location of a.com's directory (public_html/a; where the script is located). But because I'm not as knowledgeable with Apache's .htaccess, I could not get this to work. (Question 2) Is it possible to use .htaccess directives (such as from mod_rewrite, mod_alias) to redirect file access of public_html/b to public_html/a??
I know I can do simple PHP scripts to do include() of files in another directory but I prefer not to have any PHP files other than in public_html/a. Thanks in advance.