Support » Networking WordPress » Proper procedure for moving dev site to live site?

  • What is the proper procedure for moving dev site to live site?
    I intend to make a copy of the existing live site for development and testing, making theme modifications, add pages etc.

    I have read this post about running 2 copies off o the same database:

    If I were to do it this way, say “website/content/” and “website/devcontent/” that shared a database, would I then be able to simply change the names of the folders to update the site? Or would that not work since any new pages added on the dev site be entered into the database with a link other than “website/content/”?

    What exacly is the best way to accomplish this? Thanks in advance.

Viewing 5 replies - 1 through 5 (of 5 total)
  • There isn’t one. It really depends on what you’re coming from and going to, and it’s much harder with Multisite, since it hard codes some folder names in weird places.

    I would make a site locally with WordPress and use my hosts file to use domainname.loc as my URL. Then when I’m ready to go, I’d extract the DB, search/replace domainname.loc for and put it all up live.

    Thanks for the reply.
    So what happens if I share the same DB, and, having added some pages, uploads, pictures on the dev site, flip the switch (so to speak) making the dev site the live site (same folder structure as the original live site??

    I think that it’s possible it’ll work, but you’d have to try it.

    I’m trying a different approach. So I copied the “contents” folder on the server to a new folder “review/contents” and edited WP-CONFIG to point to the db on another server. I have whitelisted the IP on my other server. When I go to the new url “” I get:
    Not Found
    Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.

    Hi jdlyery,

    Was your WP install folder called “contents” and you moved the whole thing? If so, you need to either update your domain to point at that directory (probably not what you want) or update your wp-config.php to recognize it’s in a different location.

    Or was it a subdirectory inside WP? If so I’m guessing permalinks wouldn’t be working without an update…

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Proper procedure for moving dev site to live site?’ is closed to new replies.