Migrating sites to VersionPress.com¶
Just starting with VersionPress.com?
Contact us and we'll be happy to migrate the site for you. We'll also make sure that it works well on the platform.
Before you start, please understand a few things:
- The platform is built on modern technologies, for example, it only supports PHP 7.x and HTTPS (HTTPS is provided out of the box for all sites).
- Please update all plugins and themes before starting the migration.
- Do not use staging for migration. Your live site is safe to use before you switch DNS.
When you're ready to start the migration, obtain your files and a database dump from your current hosting provider.
Add new site¶
Create a new site on VersionPress.com.
Upload your files. Some tips:
wp-contentis probably the main thing you'll want to upload. Please do not remove the
- Do not overwrite
wp-config.php, it contains platform's database connection info.
.htaccessfiles will be ignored as the platform uses nginx web servers.
If you want to check your site before switching DNS records, search & replace the database to your temporary
siteid.versionpress.com domain. To standardize all URLs in the database, you can run the following set of WP-CLI commands:
wp search-replace --all-tables http://example.com https://siteid.versionpress.com wp search-replace --all-tables https://example.com https://siteid.versionpress.com wp search-replace --all-tables http://www.example.com https://siteid.versionpress.com wp search-replace --all-tables https://www.example.com https://siteid.versionpress.com wp search-replace --all-tables //example.com //siteid.versionpress.com wp search-replace --all-tables //www.example.com //siteid.versionpress.com
Wait until the DNS is propagated (all domains become green in the Domains section) and click the Make primary button for your preferred domain. The platform will run search & replace automatically and your site will be ready.
Congratulations, your site is now running on VersionPress.com!