• Resolved amandathewebdev

    (@amandathewebdev)


    Hi all,

    Not 100% sure this is the correct place to ask, but here it goes. Please forgive any incorrect terminology. I have a WP site installed as a subfolder in my hosting space. Meaning in the same folder that hosts my main site, I have: /dev, /wp-admin, /wp-content, etc. /dev is a second WP install where I did all of my development for a new site.

    Now I would like to smoothly make this live as the new site at the main domain. Would it be a matter of removing all the old files and re-uploading the dev files? Could I just point my domain to a new IP? How could I do this with the least headaches?

Viewing 5 replies - 1 through 5 (of 5 total)
  • My advise would be, to firstly backup both installs, including

    databases, this is a must in case anything goes wrong.

    Once you’ve backup up I’d suggest the following.

    • Go into, Settings > General and change the WordPress address & Site Address to the live URL where the dev site will be moved to.
    • Then within the live folder, select all of the WordPress install files & folders and place them in a new folder (/original for example), this way if anything goes wrong you can extract these files back to their original location.
    • If you now go to the dev folder and move all files within this folder to the parent folder which should be the root for your domain your dev version should now be sat live in the position of your original site.</i>

    If anything fails you can simply revert to your old files which were placed into the /original folder. I must stress backing up the files and databases before attempting this.

    Hopefully it helps you out.
    ^JD

    Thread Starter amandathewebdev

    (@amandathewebdev)

    Thanks so much, James. I’m trying to get it all set up before I take the plunge. One follow up question for you: Will swapping the /dev files into the main directory mess up any database links? Or no because of the wp-config file?

    It shouldn’t do, you’ll be keeping the wp-config file with the correct installs files when you moved the installs so I can’t foresee any issues there.

    ^JD

    Thread Starter amandathewebdev

    (@amandathewebdev)

    Hi JD – I just wanted to let you know this worked for me!

    A note in case anyone stumbles on this and makes the same mistake:

    – I forgot to change the URL in settings like you advised. Luckily I was able to do this in wp-config.php with this code:

    define('WP_HOME','https://yoururl.com');
    define('WP_SITEURL','https://yoururl.com');

    – I had to reset the Permalinks afterwards to get the pages to link right. You can do this by going to Settings > Permalinks and just hitting “save” without making changes.

    @amandathewebdev great to hear its all worked out.

    ^JD

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Two WP Installations – now I want to make the dev live’ is closed to new replies.