1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Mutiple WP Sites on Single database

Discussion in 'Blogging' started by jubael, Mar 15, 2013.

  1. jubael

    jubael Newbie

    Joined:
    Jan 3, 2013
    Messages:
    34
    Likes Received:
    14
    Occupation:
    Software Engineer
    Location:
    London, UK
    Hi,

    I have two domains and I wanted both to have WP installed on them. I only have a single database with 1and1.

    I was wondering if its possible to have two separate WP websites on a single database and if so what are the basic steps.

    I have WP on my route directory which is my first domain that i bought and when i bought the second domain i pointed the destination to a folder withing the root. This may not be correct.

    Any advice?
     
  2. innozemec

    innozemec Jr. VIP Jr. VIP

    Joined:
    Aug 19, 2011
    Messages:
    5,288
    Likes Received:
    1,799
    Location:
    www.Indexification.com
    Home Page:
    yes, you can install them fine in same database. Just make sure to change the "table prefix" in the wp-config.php before installing the 2nd WP and you will be fine
     
    • Thanks Thanks x 1
  3. daywalker79

    daywalker79 Newbie

    Joined:
    Feb 6, 2010
    Messages:
    11
    Likes Received:
    2
    Go for wordpress mu
     
    • Thanks Thanks x 1
  4. innozemec

    innozemec Jr. VIP Jr. VIP

    Joined:
    Aug 19, 2011
    Messages:
    5,288
    Likes Received:
    1,799
    Location:
    www.Indexification.com
    Home Page:
  5. jubael

    jubael Newbie

    Joined:
    Jan 3, 2013
    Messages:
    34
    Likes Received:
    14
    Occupation:
    Software Engineer
    Location:
    London, UK
    How about directory structure? it should not matter should it?
     
  6. innozemec

    innozemec Jr. VIP Jr. VIP

    Joined:
    Aug 19, 2011
    Messages:
    5,288
    Likes Received:
    1,799
    Location:
    www.Indexification.com
    Home Page:
    there directory structure doesn't matter as long as you install the scripts in different directories... you current set up is fine - one will be in the root and one will be in a subdirectory inside the root
     
    • Thanks Thanks x 1
  7. jubael

    jubael Newbie

    Joined:
    Jan 3, 2013
    Messages:
    34
    Likes Received:
    14
    Occupation:
    Software Engineer
    Location:
    London, UK
    That sounds great.

    When I copied over the WordPress, my new website redirects to my first website.

    Do I have to have a .htaccess file in both folders? do I need to make any changes to my .htaccess? or should there only be one copy in the root?