PDA

View Full Version : Add-on domain



lynn-112
05-24-2007, 10:34 AM
I would really appreciate help with this.

~~~~~~~~~~~~~~~~~~~~~~
I have a domain : www.abc.com

I registered a new domain for a different site: www.123.com bluehost (add-on)

I don't want people to be able to use:
www.abc.com/123/ or www.123.abc.com to access the new site. I only want them to be able to use the www.123.com.



I don't want the sites, www.abc.com and www.123.com ,to be connected at all so how/can do I set that up?

Thanks in advance ;)

**sorry, posted in the wrong forum. Having a bad day**

areidmtm
05-24-2007, 10:38 AM
Add or create a .htaccess file in the addon domains folder (replacing 123 with your addon domain name)



RewriteEngine on
RewriteCond %{HTTP_HOST} !^www.123.com$
RewriteRule ^(.*)$ http://www.123.com [R=301,L]

lynn-112
05-24-2007, 10:46 AM
Add or create a .htaccess file in the addon domains folder (replacing 123 with your addon domain name)



RewriteEngine on
RewriteCond %{HTTP_HOST} !^www.123.com$
RewriteRule ^(.*)$ http://www.123.com [R=301,L]


Thank you so much. It works perfect. (i had tried it but the code I used didn't work) :D