• Hello,

    I’ve developed a new version of my blog in a subfolder.
    The new blog is in /dev_blog and the old one in /blog.

    I want to transfer the new blog to the old address (/blog).

    The DB has been exported via Migrate DB with the paths leading to /blog, I’ve created a new DB and assigned it to a WP-config.php. I also have an .htaccess with the correct paths.

    Instead of erasing all the files of the old blog and replacing them with the new ones, I was wondering if it was possible to simply rename the subfolders:
    /blog would become /blog-old
    and /dev_blog would become /blog.
    I would then only replace the wp-config and the htaccess.

    Is that a correct procedure or will it break the sites?
    Thank you for your help!

Viewing 2 replies - 1 through 2 (of 2 total)
  • You don’t really have to physically move anything. Your domain doesn’t care where the site is located as long as you point it at the right directory. Hook the database up via wp-config, change the site url and home page (in phpMydmin if necessary) and it should work as soon as the dns change has propagated.

    Thread Starter JulieLap

    (@julielap)

    Thanks!

    When you say “change the site URL and home page“, do you mean the addresses found in Dashboard/General Settings?

    I thought that the WP migrate DB plugin did that job. If I link the new exported DB (with the paths pointing to /blog) in wp-config, it would not be enough? Plus the modified .htaccess of course…

    Sorry, I’m a bit confused! I moved WP sites before, but never tried to switch subfolders!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Replacing an existing WP site with a new one’ is closed to new replies.