Hi, I have two websites say www.A.com and www.B.com. Both are hosted on same server. www.A.com uses database name as 'db_a'. When I try www.B.com uses same database (db_a). No errors are generated but when I accessing the www.B.com then it redirects to www.A.com. I hope you understand me well. Any help would be time saver for me. Cheers!!!
first thing you should look at is your index.php or .httaccess, then see if it has redirect code in it and remove it. this will get rid of the redirection.
this is just the same, if the 2 websites have SAME host, they will have the same configuration. if the 2 websites have DIFFERENT host, just point your host to the machine where the database reside.