Title: Duplicating site
Last modified: August 30, 2016

---

# Duplicating site

 *  [omigosh](https://wordpress.org/support/users/omigosh/)
 * (@omigosh)
 * [11 years ago](https://wordpress.org/support/topic/duplicating-site/)
 * 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](https://wordpress.org/support/users/numeeja/)
 * (@numeeja)
 * [11 years ago](https://wordpress.org/support/topic/duplicating-site/#post-6343846)
 * 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/](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](https://wordpress.org/support/users/omigosh/)
 * (@omigosh)
 * [11 years ago](https://wordpress.org/support/topic/duplicating-site/#post-6343934)
 * 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](https://wordpress.org/support/users/numeeja/)
 * (@numeeja)
 * [11 years ago](https://wordpress.org/support/topic/duplicating-site/#post-6343939)
 * What is the URL?
 *  [Josh](https://wordpress.org/support/users/josh401/)
 * (@josh401)
 * [11 years ago](https://wordpress.org/support/topic/duplicating-site/#post-6343940)
 * _[related to [this thread](https://wordpress.org/support/topic/switch-databases?replies=2)]_
 *  Moderator [cubecolour](https://wordpress.org/support/users/numeeja/)
 * (@numeeja)
 * [11 years ago](https://wordpress.org/support/topic/duplicating-site/#post-6343957)
 * 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.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 3 participants
 * Last reply from: [cubecolour](https://wordpress.org/support/users/numeeja/)
 * Last activity: [11 years ago](https://wordpress.org/support/topic/duplicating-site/#post-6343957)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
