Hi, i am in the middle of coding a wordpress site for my client. The client already has a site and wants to keep the old site running until the new site is ready to go live.
I am currently setting up the new site on www.theoldsite.com/d3mo/ and then i plan to move it to the live home directory when the content has been added.
MY QUESTION
what additional steps do i need to do other than just copying all of the files in the /d3m0/ to the www.theoldsite.com/ directory… do i need to set up wordpress in any special way or change permalinks or any other links… will stuff stop working when i move it to the live directory, thanks in advance
Are you transferring the whole site as is? Same URL structures, info architecture, and content? Because if not, you might want to add 301 redirects from old URLs to new URLs before you migrate. It would preserve your SEO.
Backup the current (live) Wordpress website, place in “old” directory or whatever you want to call it.
Assuming his current site is also a Wordpress installation, otherwise just backup whatever files needed and place in a backup directory, or simply compress them into a .zip, etc…
Download a full backup of the (new) Wordpress directory.
Upload (new) Wordpress files to the root directory.
Edit wp-config if needed
Search/Replace SQL backup and replace demo site url with actual site url.
Alright, not as simple then but here is my suggestion.
Via cPanel, Plesk or preferably phpMyAdmin export the current database (full)
I’d recommend doing a search & replace. Replacing olddomain.com with newdomain.com through the entire sql file.
Create database, database user/password on the new server.
Import the sql file you edited.
Download a full backup of the Wordpress directory (the one you wish to place on the new server)
Edit the wp-config file, replacing database connection information with the database information of the new server. Also edit the Wordpress Site URL which is in the wp-config file
Upload to new server
This is my process, also chmod the directories needed also. If you are stuck, please let me know and I’d be glad to assist.