• Resolved derekbarker

    (@derekbarker)


    I have a heavily modified version of WP that I am using for a movie blog website.

    What I want to do is create separate websites that use their own template, but use the same information and images from the main website.

    For example: I maintain the main website with 1,500+ pages of content.

    I then create a half dozen sites that use their own template and ads, but display information and images from the main site.

    Working in this way I can maintain one database to promote multiple companies.

    Any help would be appreciated. I have a separate site connected to the database already, that was easy. Images do not load though, and any link I click goes to the main website.

    Thanks!

    main website: https://www.zazzoid.com
    copy: https://tvdl.biz/

    Database works… But the path still points to zazzoid. ??

Viewing 6 replies - 16 through 21 (of 21 total)
  • db1987

    (@db1987)

    Hi derek,

    Apologies, I will get round to posting it down, its been a task for a client so Im just finishing the job up.

    David

    rainer23

    (@rainer23)

    Multiple wordpress in one database will slow down your websites dramatically. At least my experience.

    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.

    I’m not sure if you are still monitoring, but I have been trying this in my head all day. I just saw your post and wanted to share my thoughts.

    What if you:

    -Install WP separately on its own hosting (or sub domain, etc.)
    -Change the DB login info to match the main DB you want to use in the config file(s)
    -Change permalinks or any other references to your domain name to pull dynamically from the current page URL less anything after .com/ using a modified version of:

    if($_SERVER['HTTPS']!=="on")
      {
         $link = $_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
         if (strstr($link, 'www.')) { $www = ""; } else { $www = "www."; }
         $https = "https://";
         $redirect = $https.$www.$link;
         header("Location:$redirect");
      }

    Then it does not matter which site you login to, the content would be the same, and you could still use separate themes, etc.

    Again, this is all in my head…

    I also want to create multiple sites – but with same contents.

    I want to have master store with products. Now each affiliate will have separate websites with same product (but different prices). This different price – can be then managed through custom field. Each affiliate may also have different theme.

    I want to maintain common contents / categories for all the sites.

    How can I use multisite feature of wordpress to achieve it OR any other alternative mode?

    @derekbarker @db1987 did you resolve this problem? if so, I’m keen to hear how.

    @efishant did you ever test this code? it looks great in theory!

Viewing 6 replies - 16 through 21 (of 21 total)
  • The topic ‘Multiple WP blogs using same database.’ is closed to new replies.