One database two websites

Discussion in 'PHP' started by truewhite, Dec 14, 2010.

  1. #1
    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!!!
     
    truewhite, Dec 14, 2010 IP
  2. truewhite

    truewhite Peon

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I just want central database with multiple sites. I uses PHPPROADS for making of two websites.
     
    truewhite, Dec 14, 2010 IP
  3. tnd8

    tnd8 Peon

    Messages:
    18
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    PHPPROADS do not support multisite. Please try another scripts.
     
    tnd8, Dec 14, 2010 IP
  4. ankit_frenz

    ankit_frenz Active Member

    Messages:
    1,111
    Likes Received:
    41
    Best Answers:
    0
    Trophy Points:
    63
    #4
    its not some issue with the Db its some issue with your codes.
    Thanks
     
    ankit_frenz, Dec 14, 2010 IP
  5. truewhite

    truewhite Peon

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Hi

    I got mail form PHPPROADS saying that,
    Cheers!!!
     
    truewhite, Dec 14, 2010 IP
  6. mbanusick

    mbanusick Greenhorn

    Messages:
    13
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    11
    #6
    that means you've got to pay someone to do that for you...
     
    mbanusick, Dec 15, 2010 IP
  7. truewhite

    truewhite Peon

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    hahah that's damm right. But I keep trying to solve by myself.
     
    truewhite, Dec 15, 2010 IP
  8. animebuzz.tv

    animebuzz.tv Peon

    Messages:
    317
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #8
    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.
     
    animebuzz.tv, Dec 15, 2010 IP
  9. truewhite

    truewhite Peon

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    I tried it, but lets make one more time as you say.
     
    truewhite, Dec 15, 2010 IP
  10. bartolay13

    bartolay13 Active Member

    Messages:
    735
    Likes Received:
    14
    Best Answers:
    1
    Trophy Points:
    98
    #10
    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.
     
    bartolay13, Dec 15, 2010 IP
  11. truewhite

    truewhite Peon

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #11
    I have two websites on the same HOST.
     
    truewhite, Dec 16, 2010 IP