Forums

One Domain, Two Sites - Two Databases (4 posts)

  1. ariebsomer1
    Member
    Posted 4 months ago #

    I am kind of new to WordPress, but am getting around okay.

    I created a website for a company using a template, etc. Now this company wants to set up a duplicate site - one for each location. Though some of the pages will be the same, others will go to different links.

    I figured the easiest way to do this would be to copy the current database to a new one and then make the changes I needed to the hyperlinks in the new db.

    What I'd really like is to have the domain point to a central page that then lets the user select which location - just link to whichever index php file needed on the one central page.

    What I don't know how to do is - if I create this new database, can a create a static page at the current domain and then use hyperlinks to point to either location - even though they're on separate databases? Can one domain be used to govern both of these database instances?

    Any advice appreciated.

    Thanks.

  2. Ipstenu
    Half-Elf Support Rogue & Mod
    Posted 4 months ago #

    Preface: This isn't mUltisite. Multisite is ONE install, multiple sites. You're talking multiple sites.

    if I create this new database, can a create a static page at the current domain and then use hyperlinks to point to either location - even though they're on separate databases

    Yes. You can link to anything, it's just HTML :)

    Can one domain be used to govern both of these database instances?

    Yes. You can have as many installs on one domain as you want.

    If you want to do this with MULTISITE, you could Create a Network - http://codex.wordpress.org/Create_A_Network - and make a child site for your second site.

  3. ariebsomer1
    Member
    Posted 4 months ago #

    So will creating a network allow me different control panels for the various sites? (Sorry, I'm used to HTML.) Both of these sites will have some of the same links, but they will go to different php files depending on the location. This was what I couldn't figure out conceptually at first - I could've just duplicated files and created new buttons to go to either info1.pho or info2.php, but I have no way to control which one of these buttons comes up on index1.php or index2.php, because my options are either "show page as link" or "don't show page as link," as opposed to "if you're on this index, show this page as a link, if on the other index, show the other one."

    Does that make sense?

    Thanks for the help.

  4. Ipstenu
    Half-Elf Support Rogue & Mod
    Posted 4 months ago #

    Creating a network will allow you to make multiple WordPress sites with one install. Hence MultiSITE.

    It's like running WordPress.com. They don't install a new version of WP for everyone.

    This was what I couldn't figure out conceptually at first - I could've just duplicated files and created new buttons to go to either info1.pho or info2.php, but I have no way to control which one of these buttons comes up on index1.php or index2.php, because my options are either "show page as link" or "don't show page as link," as opposed to "if you're on this index, show this page as a link, if on the other index, show the other one."

    I don't even understand what you're asking...

    You can STILL make buttons for info1.php and info2.php. But what are these 'show page as link' options you're talking about?

Reply

You must log in to post.

About this Topic