• I’ve tried to use plug-ins to duplicate my site but they don’t work for various reasons so I’m trying to do it manually.

    What I want to do is duplicate a site right within itself– i.e, to put the duplicate in a folder called ‘new’ right inside the public_html folder where my original site now exists.

    Seems to me I should just be able to:

    1– install a new version of WordPress in the ‘new’ folder.
    2– create a new database called ‘mysitename-new’ right next to my old database.
    3– copy my old db into the new db using PHP My Admin. Also change the wp-options table to reflect the new URL.

    Open up my new site and see my old text and pages where they should be without the images, because the media library hasn’t moved.

    But it doesn’t work– I dial up the new site (www.oldsite.ca/new) and it reverts to the old site.

    Any help much appreciated. And yes, I have read the WordPress Codex item on transferring a site.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator cubecolour

    (@numeeja)

    Log on to the admin of the new site, go to settings -> permalinks, and press save

    If the site is set up correctly, this should it redirecting back to the old site.

    The database contains countless references to the URL – eg paths to images, so you also need to update these – ie change every instance of
    sitename.com

    in the new site’s database to

    sitename.com/new

    I would use the search/replace db tool to do this: https://interconnectit.com/products/search-and-replace-for-wordpress-databases/ I believe there may be plugins to perform the same task however I have not tried them.

    Thread Starter omigosh

    (@omigosh)

    Thanks– but it’s still not working. I changed the config.php dbname, username and password to reflect the new values and changed the sitename in wp-options table to reflect the new url.

    Not working at all– just get a blank page. The URL in the address bar stays the same, so it’s not redirecting.

    Am I missing something?

    Moderator cubecolour

    (@numeeja)

    What is the URL?

    [related to this thread]

    Moderator cubecolour

    (@numeeja)

    Thanks Josh. Closing this one as a duplicate thread

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Duplicating site’ is closed to new replies.