Forum Replies Created

Viewing 13 replies - 1 through 13 (of 13 total)
  • Thread Starter derekbarker

    (@derekbarker)

    I’ve just deleted everything and am going to try to do this from the beginning again. I need to be able to duplicate sites quickly and easily. For now I am not concerned about how fast the database runs, providing that is actually a factor.

    To recap, I need multiple versions of the same website on different URL’s. Images will all be on the main blog, content all comes from the same database. Links and logo will be the only difference.

    I am willing to pay somebody to be my tutor. There are basic things that I do not know how to do that would make this so much easier.

    Thread Starter derekbarker

    (@derekbarker)

    Hey David,

    Not sure if you will read this. Are you coming back to post how you accomplished this?

    It’s been a giant pain making one copy, and I want to make several more. Any help to shorten the process would be tremendous.

    Derek

    Thread Starter derekbarker

    (@derekbarker)

    I just set the server to redirect https://www.site.com to https://site.com with a wildcard. That at least masks the problem, but I am still trying to figure out why it happens.

    Thread Starter derekbarker

    (@derekbarker)

    That would be awesome. I suspect there is an easier way than what I figured out.

    I also share users, the only thing that is not shared is the template.

    There is still an issue when I use “www” in front of site2, it does not load my gallery images. Without the “www”, the galley looks fine. That may not matter as I am reprogramming the gallery to work with an automated script that adds film data and images from imdb.com

    Looking forward to your “how to”. Has to be easier than mine.

    Thread Starter derekbarker

    (@derekbarker)

    I may have figured it out…

    I couldn’t connect to my second options database, so I decided to create a second ‘home’ database. I named it ‘2ndhome’.

    Now I am looking for ‘home’ in /public_html/tvdl/wp-includes/link-template.php and changing it to ‘2ndhome’

    Also had to make changes to /tvdl/wp-content/themes/ondemand/header-home.php and it seems to work perfectly!!!

    Thread Starter derekbarker

    (@derekbarker)

    Awesome!!

    I’m staring at a database not knowing what I am looking for.

    Thread Starter derekbarker

    (@derekbarker)

    Hey David,

    That sounds like where I have been stuck all day. Copying the config.php file from site1.com and pasting it into site2.com seems to do the trick with the data.

    Somehow we need to get site2.com to read an alternate version of the ‘wp_options’ database. In my case it is ‘wp_options2’.

    I’ve given up for the day. I’ve spent about 12 hours on this and need to clear my head.

    Please post if you manage to get that last step to work.

    Derek

    Thread Starter derekbarker

    (@derekbarker)

    Hey David,

    Thanks for the reply.

    I keep hitting a wall when I change ‘options’ to ‘options2’ in public_html/tvdl/wp-includes/wp-db.php

    As I truly don’t know what I am doing, I am just changing ‘options’ every I find it.

    When I edit this line I am sent to a WP installation page.

    var $tables = array('users', 'usermeta', 'posts', 'categories',
    'post2cat', 'comments', 'links', 'link2cat', 'options2',
    'postmeta', 'terms', 'term_taxonomy', 'term_relationships');
    Thread Starter derekbarker

    (@derekbarker)

    I think that I just need to get secondary versions of WP to access their own version of the ‘options’ database.

    I’ve made a copy of ‘wp_options’ and renamed it ‘wp_options2’ and then edited “zazzoid.com” to “tvdl.biz” in the database.

    On tvdl.biz I have tried to change every instance of ‘wp_options’ to ‘wp_options2’ but the links still go to “zazzoid.com”

    Arghhh!!!! WHY IS IT STILL LOADING THE OLD OPTIONS DATABASE!!?!?!?

    Mother expletiving expletive!

    FYI, I am now testing with version 2.8.6 instead of 2.9.2

    Where-O-where does WP load info from ‘wp_options’…? Certainly not anywhere I have changed it as yet.

    Thread Starter derekbarker

    (@derekbarker)

    Looks like I am having a conversation with myself. ??

    Anyhow, I found this post: https://www.heathersblog.com/2007/multiple-blogs-same-content/comment-page-1/#comment-19993

    It says to create a separate options entry in the database and to connect to that with separate installations. Unfortunately the code she demonstrates with no longer exists in current versions of WP.

    Anybody willing to help alter a current WP install to use shared content but a different options entry? I’ll keep plugging away, but I am by no means a programmer. I’m just stumbling along here.

    Any help would be appreciated.

    Thread Starter derekbarker

    (@derekbarker)

    I manually changed “home” in the main database and that changed the links on both sites.

    Now I am looking for a way for each installation to use a unique variable for “home”, but still use the same content.

    As usual, any direction would be greatly appreciated. I am a persistent novice, nothing more.

    I need to figure out what script loads the “home” information from the database…

    Thread Starter derekbarker

    (@derekbarker)

    OK…

    Now I think that it will mean I need a separate ABSPATH.

    Any advice would be awesome. I’ve managed to kill the site a few times now trying to do that. ??

    Thread Starter derekbarker

    (@derekbarker)

    I think that it will work if I hard code the SiteURL instead of loading it from the database.

    Working on figuring that out. Bruising my forehead on my desk in the process.

Viewing 13 replies - 1 through 13 (of 13 total)