Two domains, one database

Discussion in 'Databases' started by Mmecca, Oct 18, 2007.

  1. #1
    I just bought my second domain name and I want to save money by hosting it in the same ftp folder as my main site.

    The sites are going to be completely different so how can I stop google mixing them up.

    eg

    the main site has the url www.site1.co.uk/store

    and my second site will have

    www.site2.co.uk/home/store

    so how can I stop the home/store folder being accessed by site one?


    if that make any sense :confused:
     
    Mmecca, Oct 18, 2007 IP
  2. crazyryan

    crazyryan Well-Known Member

    Messages:
    3,087
    Likes Received:
    165
    Best Answers:
    0
    Trophy Points:
    175
    #2
    Do you have cpanel, add-on domains will work well for you.
     
    crazyryan, Oct 18, 2007 IP
  3. Mmecca

    Mmecca Guest

    Messages:
    225
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Yeah I have that. I just used the park domain option, will I just 'unpark' it and add it thorugh the add-on option?

    Will this stop the folders being mixed up?
     
    Mmecca, Oct 18, 2007 IP
  4. Lordy

    Lordy Peon

    Messages:
    1,643
    Likes Received:
    29
    Best Answers:
    0
    Trophy Points:
    0
    #4
    yes, this is if your hosts allows you to host more than one domain
     
    Lordy, Oct 18, 2007 IP
  5. moodswing

    moodswing Peon

    Messages:
    188
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #5
    each one should have a unique ip address. then you can start using one database. Or you can have different domain names but with the same ip and duplicate your database. thats it. :)
     
    moodswing, Oct 20, 2007 IP
  6. dotWdot

    dotWdot Peon

    Messages:
    685
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I would suggest housing them in seperate folders, you will have all sorts of conflicts if you run two sites from one folder - your host should be able to help you out - you should just be able to go as far up the directories as possible in your hosting and then create two folders, use the first for site1 and second for site2?
     
    dotWdot, Oct 21, 2007 IP
  7. upl8t

    upl8t Peon

    Messages:
    80
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Where your files are located on your server has no affect on the search engines (as to whether it's one site or two).

    You could theoretically serve the same content (from the same directory) on 2 different domains, and it would be 2 sites in googles eyes (except from a duplicate content issue).

    I would definitely suggest serving them from seperate directories from a management point of view though.

    What you usually do is put multiple folders under a single directory /usr/local/www/ (for example).

    Each directory becomes it's own domain, so for site1.something.. you point it at /usr/local/www/site1/

    And for site2.something..you point it at /usr/local/www/site2/

    This all depends on your host though, whether you're allowed multiple domains on your account, etc.

    This is definitely something you should talk to your host about if you don't know.

    PS: About each one requiring a unique ip address, that's definitely not true. You can host hundreds of domains on a single ip address, unless you want SSL (https ://...).
     
    upl8t, Oct 22, 2007 IP