How did you move your site?
– put a fresh install of wordpress on the new server
– copy/pasted the wp-content folder from my old server into the new one.
– export all content into an xml file from the old server.
– create a new empty database on the new server / update database information in wp-config.
– import xml into new server.
On a side note, I also lose all widget data this way, I’ve gotten used to just saving it in a seperate html file and inputting afterwards. But if there is something I can do to have widget data imported along with the rest I’d love to hear it.
Yeah, that’s not how to move a site.
See https://codex.wordpress.org/Moving_WordPress
Basically,
* Download all files.
* Backup the database and download the resulting .sql file.
* Create an empty db on the new site. Create and grant a user.
* Edit wp-config.php (downloaded) for the db settings for the new host.
* Import the .sql file into the db on the new host.
* Upload the files.
If you changed the URL, use this to change all URLs from the old one to the new one:
https://interconnectit.com/products/search-and-replace-for-wordpress-databases/
I’m sorry I’m not entirely sure what is different with the steps you listed and the things I listed, aside from the format of the exported content file.
Could you elaborate on what step I missed?
All the necessary settings are in the database, including plugins, the media library, etc. I never use the export/import tool to move a site because it misses a lot. You want to move the files and database and then do a bit of cleanup on the URLs (if there’s any change in the domain).
So how to you export a database then? through PHPMyAdmin?
If you don’t have access to a command line, use phpmyadmin on both ends for export and import.
Thanks! I’ll try this out.