Moving developed site to replace existing site
-
ok I am totally new to this and a little confused. Please help.
There is an existing site: let us say “sitename.com” in which an old version of WordPress is installed. This is the current publicly viewed site.
I was asked to develop a new site and the hosting company (Register365) put in a new area “new.sitename.com”. The latest version of WordPress is installed here and this new site has now been completed to the delight of the owner. this “new.sitename.com” has a completely different WP-admin login page to the sitename.com and therefore different users.
Now the time has come to replace the existing site with the new site. All that should be left when completed is one neat site and I don’t want a whole duplication of files. The new.sitename.com should effectively be deleted, as the sitename.com will now reflect all the new setup..
In speaking with tech support at Register365, the host company, they state that the plugins will not work in helping me to move the site, but what I will need to do is copy all the files in the new wordpress directory over, export the new database and import this database using SQL. Then edit the PHP confiig file to ensure it points to the right database.
At this point in time I have backed up files and exported databases from both new.sitename.com and sitename.com. Permalinks are set to their default while the new siteaddress URL and (new)wordpress URL reflect the new.sitename.com address.
I have consulted the WordPress Codex and in particular “Moving Directories on Your Existing Server” and am still confused:
Here there is no mention of the databases being exported and imported (guess this might be done within the plugins you talk of). However, it clearly highlights a need to change the WordPress URL and site address URL to the new address (sitename.com) and save these changes. My concern is given sitename.com already exists that this might cause issues.
From what I understand this might be the best approach:
1. Back up all files(using Filezilla) and export both databases (using PHPmyAdmin) at this stage, so that if necessary we can simply re-create the two existing sites as they stand.
2. Delete the wordpress files and wordpress directories from the sitename.com directory
3. login in to new.sitename .com and reset the SIte addresss URL and WordPress Address URL to sitename.com and save changes. Download this set of files by Filezilla.
4. Using Filezilla, upload the wordpress files and directories taken from the last download in (3) to the sitename.com directory
5. import the database taken from new.sitename.com into the sitename.com database.
6. Ensure that the php Config file is directed to the imported database
7. Go to sitename.com/wp-admin (or sitename.com/wp-login.php) to get into the backend of WordPress and correct the fixed links (including some custom menu items and other fixed links)
8. Once happy with the working of the new site in sitename.com then new.sitename.com may be deleted.
9. Recheck sitename.com for any broken links caused by 8.
At this stage I would expect the logins would refer to users from the newsite.com
Do I seem to have it nailed, at least in theory? Should I be exporting the database once the URL is changed in 3?
If you can comment on this that would be most appreciated, this is by far and away the worst part of changing a site….
Many thanks for your input on this.
John
- The topic ‘Moving developed site to replace existing site’ is closed to new replies.