dns path name ? forward redirection?


I have a reseller who also designs sites for people and they have now asked me if the following is possible:

customer site www.aaa.com
resellers site www.bbb.com

all the files for www.aaa.com are kept on www.bbb.com/aaa

when visiting aaa.com only aaa.com is viewble in the address bar.

Is this possible and how?

It’s not easily doable at this point no. I’m sure it could be done with some symlinks and possibly redirects but I don’t know the best way to facilitate this off the top of my head.


This is ‘do-able’ with some modifying of the .htaccess file that needs placing in the web-root of www.bbb.com

RewriteEngine On

Options +FollowSymlinks
RewriteBase /

RewriteCond %{HTTP_HOST} aaa.com$
RewriteCond %{REQUEST_URI} !aaa.com/
RewriteRule ^(.*)$ aaa.com/$1

Add the www.aaa.com (customers site) as a pointer domain into the resellers account (bbb.com). Add the above to the .htaccess file in the root of www.bbb.com and aaa.com will load files from /home/bbbcom/public_html/aaa.com/

You may need to alter slightly the rewrite code, or make other small adjustments. The emails should work okay, but obviously stats etc wont as you are not setting up a separate hosting account for aaa.com.

You obviously would need to add the last three lines for every domain that was added to the resellers account :slight_smile:

Let us know how you get on.