The Moz Q&A Forum

    • Forum
    • Questions
    • My Q&A
    • Users
    • Ask the Community

    Welcome to the Q&A Forum

    Browse the forum for helpful insights and fresh discussions about all things SEO.

    1. SEO and Digital Marketing Q&A Forum
    2. Categories
    3. Intermediate & Advanced SEO
    4. Best way to duplicate a wordpress site for staging purposes?

    Best way to duplicate a wordpress site for staging purposes?

    Intermediate & Advanced SEO
    8 4 2.0k
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as question
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • NoahsDad
      NoahsDad last edited by

      I want to make some changes to my Wordpress site, and want to somehow set up a live staging area. Does anyone know of a good way to do this?

      I want all of the same content there I just want to be able to make changes to it and try it all out before going live. Any thoughts on this?

      Also I want to be sure the staging site doesn't get indexed since it will be a complete duplicate of my existing site.

      Thanks!

      1 Reply Last reply Reply Quote 0
      • ColumK
        ColumK last edited by

        Why not create a subdomain that only your office IP can view? You can then test as much as you like without worrying about other people viewing it or Google.

        NoahsDad 1 Reply Last reply Reply Quote 0
        • NoahsDad
          NoahsDad @ColumK last edited by

          That's what I need help trying to create. I also want the staging site to be a duplicate of the existing site, but there so much content I can't do a simple import / export through Wodpress's admin panel...

          1 Reply Last reply Reply Quote 0
          • Mark_Ginsberg
            Mark_Ginsberg last edited by

            If you're on Windows, you can locally install xampp on your machine, and then install wordpress locally.

            Or you can do what columK suggests and install it on a subdomain on your site. Here is info from wordpress about moving domains - you can also install a plugin to do this - I've used Wordpress Move in the past

            Once you've set up the new site, go to the settings section, reading, and then click the checkbox to discourage search engines from reading the testing site - that will modify the robots.txt to block search engines.

            Good luck!

            Mark

            NoahsDad 1 Reply Last reply Reply Quote 0
            • NoahsDad
              NoahsDad @Mark_Ginsberg last edited by

              I'm actually on a mac.

              If I install it locally on my mac I can't let other people see it unless they are looking at my computer, correct?

              I have other domains...would be better to use one of those, or to use a subdomain?

              Thanks.

              ColumK NoahsDad 2 Replies Last reply Reply Quote 0
              • ColumK
                ColumK @NoahsDad last edited by

                OK, then use the subdomain, you can then set up with dreamweaver a check in/out system for your staff which stops people editing the same files etc. On save/put you can set it to upload it to your testing server (subdomain). you would then be able to view this from any machine in your office (i would also still block all IPs on that subdomain except for your office). Once happy you can then either upload the specific files then to the main server, or do a release every evening/other evening after testing etc.

                1 Reply Last reply Reply Quote 0
                • NoahsDad
                  NoahsDad @NoahsDad last edited by

                  Thanks so much. I actually don't need any other staff people to see it. I just want some designers in other parts of the U.S. to see it.

                  The main this is how to duplicate it. Including all of the images, database, etc.

                  I've never done anything like this before.

                  Thanks.

                  1 Reply Last reply Reply Quote 0
                  • BedeFahey
                    BedeFahey last edited by

                    Howdy,

                    I've recently become a fan of WPengine for this reason - they've got some neat staging features, including, I believe, being able to stage changes, check them out, and push them live. But, that would probably require you to change hosting.

                    That said, here's how I tend to move sites from development to production (or production to development). Someone who knows more might have some changes or suggestions, or an easier way, but this is what works for me:

                    1. Install WordPress somewhere. Make sure its noindexed and/or password protect the directory.

                    2. Download a copy of your wp-content folder from your existing site (this will pull all of your themes, plugins, etc.)

                    3. Export a copy of your wordpress database (how to here: http://codex.wordpress.org/Backing_Up_Your_Database)

                    4. Open up your database in a text editor (I like Notepad++) and locate the first instance of your old domain name with the new one and then use find and replace to switch out all instances of the old domain name for the new one e.g. if it's noahsdad.com/ and you're moving to dev.noahsdad.com/ use find and replace to switch all occurances of noahsdad.com/ to dev.noahsdad.com/. Be careful to look at trailing slashes etc.

                    5. Upload your wp-content file to the new wordpress install. Overwrite the old one.

                    6. Open the database for the fresh WP install using PHPmyadmin (or the equivalent, on your server). Import the database that you conducted the search/replace on.

                    The advantage of uploading the wp-content folders and then then database is that the Database changes while the files for plugins etc. are already in place. Therefore, it should retain many of the plugin settings so you won't get any serious weirdness due to an important plugin not working.

                    Here's a guide that I like http://wpmu.org/migrating-wordpress-to-a-new-server/. It doesn't conform exactly to the method I use (they upload the database first), and it has some extra stuff in it like updating your nameservers which you should ignore, but it covers the database part pretty nicely.

                    Hope this helps.

                    Bede

                    1 Reply Last reply Reply Quote 0
                    • 1 / 1
                    • First post
                      Last post
                    • What is the best way to add semantic linked data to WordPress?
                      Alick300
                      Alick300
                      0
                      2
                      123

                    • Best way to start a fresh site from a penalized one
                      JaneCopland
                      JaneCopland
                      0
                      8
                      152

                    • What's the Best Host For WordPress sites
                      Christy-Correll
                      Christy-Correll
                      0
                      5
                      245

                    • How best to structure wordpress site.
                      TakeshiYoung
                      TakeshiYoung
                      0
                      3
                      750

                    • Best way to transfer pagerank from one site to another
                      GoodAtMarketing
                      GoodAtMarketing
                      0
                      5
                      1.7k

                    • What's the best way to manage content that is shared on two sites and keep both sites in search results?
                      BostonWright
                      BostonWright
                      0
                      13
                      285

                    • Best way to SEO crowdsourcing site
                      StreetwiseReports
                      StreetwiseReports
                      0
                      3
                      706

                    • Best way to find broken links on a large site?
                      nicole.healthline
                      nicole.healthline
                      1
                      3
                      703

                    Get started with Moz Pro!

                    Unlock the power of advanced SEO tools and data-driven insights.

                    Start my free trial
                    Products
                    • Moz Pro
                    • Moz Local
                    • Moz API
                    • Moz Data
                    • STAT
                    • Product Updates
                    Moz Solutions
                    • SMB Solutions
                    • Agency Solutions
                    • Enterprise Solutions
                    • Digital Marketers
                    Free SEO Tools
                    • Domain Authority Checker
                    • Link Explorer
                    • Keyword Explorer
                    • Competitive Research
                    • Brand Authority Checker
                    • Local Citation Checker
                    • MozBar Extension
                    • MozCast
                    Resources
                    • Blog
                    • SEO Learning Center
                    • Help Hub
                    • Beginner's Guide to SEO
                    • How-to Guides
                    • Moz Academy
                    • API Docs
                    About Moz
                    • About
                    • Team
                    • Careers
                    • Contact
                    Why Moz
                    • Case Studies
                    • Testimonials
                    Get Involved
                    • Become an Affiliate
                    • MozCon
                    • Webinars
                    • Practical Marketer Series
                    • MozPod
                    Connect with us

                    Contact the Help team

                    Join our newsletter
                    Moz logo
                    © 2021 - 2026 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
                    • Accessibility
                    • Terms of Use
                    • Privacy