I was charged by a client to build a new WordPress that will replace an old website built with a custom CMS.
I built the WordPress on a different CPanel user and sub domain. It is currently (the new site) on http://alpha.mywebsite.com while the old site is directly at http://www.mywebsite.com.
What would be the best way to do this?
In a perfect scenario, I would change the public_html folder in the main domain to public_html_old, and copy the new one containing the wordpress to public_html.
Is this safe practice? Or is there additional database, admin, etc. stuff I need to be aware of?
Thanks a lot for your tips and opinion 🙂
2
Answers
You should consider update URLs in database too. One of the safest and easiest way to migrate your WordPress to a new domain is using “Duplicator plugin“. it backs up your wordpress files and database, then you move the backup files to new domain and run the duplicator’s installer file. it updates all urls.
this way you know that your old cms is in ‘oldcms’ folder and new site is in public_html. Hope this helps you.