Primary domain (bigname.com)
Addon Domain name (foo.biz)
So you own bigname.com and foo.biz.. The domain associated with your login is bigname.com and you want to addon the domain foo.biz.
This one goes in .htaccess in the /home/username/public_html/ folder
CODE
Redirect permanent /foo.biz http://www.foo.biz
That one tells anyone who tries
http://bighost.com/foo.biz to go to
http://www.foo.biz instead
This one goes in .htaccess in the /home/username/public_html/foo.biz folder
CODE
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www\.foo\.biz\.bighost\.com [NC]
RewriteRule ^(.*) http://www.foo.biz/$1 [R=301]
RewriteCond %{HTTP_HOST} ^foo\.biz\.bighost\.com [NC]
RewriteRule ^(.*) http://www.foo.biz/$1 [R=301]
This one fixes the problem if for whatever reason someone tries to access your foo.biz domain via the dns entry www.foo.biz.bighost.com (this is made automatically by cpanel in your dns entries) it rewrites the URL to www.foo.biz. The second part does the same just drops the www part...
Hope that is clear, if not ask..
Jason