WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Need to create a temp copy of site on a same server (4 posts)

  1. IntegrityWebDev
    Member
    Posted 1 year ago #

    I have a live WP site at http://www.example.com/site1

    I am using a custom theme heavily modified and the person I'm working with wants to use a new theme that will require some modification before use and will also require some content changes. Because the site is live and I need to make changes I cannot just switch themes.

    I'm *thinking* I need to make a second copy of the site, including the DB at: http://www.example.com/site2 as well as make a second DB, then do all my work there. Once I'm done make that live.

    What are your thoughts on this? How exactly do I go about doing this?

  2. vtxyzzy
    Member
    Posted 1 year ago #

    I believe that all you need to do is create a new directory named 'site2' under the root directory for your current site.

    You should be able to access that using http://www.example.com/site2. You can test that out using a simple 'Hello, world' index.php file.

    If that works out, you can create a new database and do a new install of WP in that directory. Once you get that running, you can migrate the current site to the new one following the steps here:
    http://wordpress.mcdspot.com/2012/08/22/migrating-a-wordpress-site-step-by-step/

    That will give you a duplicate of the current site to develop the new theme.

    Getting that theme and new content to be the live site is somewhat complicated if you want to retain any Google ranking. I am not an expert in this area, so you should probably get more information about this before you commit to switching to a duplicate site.

  3. IntegrityWebDev
    Member
    Posted 1 year ago #

    Thanks, I did this and it worked out great!

  4. vtxyzzy
    Member
    Posted 1 year ago #

    If your problem has been solved, please use the dropdown on the right to mark this topic 'Resolved' so that anyone else with this question can see that there is a solution.

    Also, I would appreciate a comment on the page with the instructions.

Topic Closed

This topic has been closed to new replies.

About this Topic