View Full Version : redirect based on domain name.

01-23-2011, 07:04 AM
Hi -

we have two domain names pointing to the same directory...


but basically somebusinescompany.com is the domain name we have setup for users and sbc.com is setup for our self and make edits.

further we have PHP file which detects what url is the user coming from and redirect according to the PHP database file.

all i need is a .htaccess file to detect users if they are coming from sbc.com and ask them for apache authentication.

any tips???

Also, we don't want any authentication for somebusinesscompany.com
it's just if the users is opening sbc.com