Seeking advice on WordPress directory swap

[ad_1]

Hi wise folk of reddit,

I recently planned on redesigning one of my wordpress websites and now I want to make this website live.

Trying to explain this as best as I can:::

1. Old website lives in public_html/oldwebsite

2. I designed a whole new installation of wordpress – new db, reuploaded images, everything (wanted a clean slate), installed and ready to go website now lives in public_html/newwebsite.

My question is: Which is the FASTER and LESS COMPLICATED way to make the new site go live…?

Presently domain.com is pointed at oldwebsite as it’s directory

1.  One plan is to simply change my domain.com to point to public_html/newwebsite and wait out the change.(i think this says upto 48hours sometimes?)

2. Thought that the fastest way to get my new website live by RENAMING folder newwebsite to oldwebsite — and then opening wp-config.php of the newwebsite to replace the location mentioned to /oldwebsite

My question is – will the option 2 require more steps than I think…or am I being too naive about option 2 being a easy swap the folder names fix and making a mess?

Thanks in advance for your advice !!

[ad_2]
1 Comment
  1. I think with the second method you’ll also have to change all the references in the db to the newurl.

    My method is the following: make a copy of both sites using duplicator. Remove all the files of the live site (oldwebsite) upload the duplicator installation and set it up. Shouldn’t take more than 10 mins and you get to have backups of both sites.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer