Divi: the easiest WordPress theme to use
Divi: The best WordPress theme of all time!
With over 901.000 downloads, Divi is the most popular WordPress theme in the world. It is complete, easy to use and comes with more than 62 free templates. [Recommended]
There are many reasons why you may want to move a WordPress multisite out of a multisite network: the site may be too large, it needs its own IP address, the site owner wants to take full control, or the server does not. is no longer able to do it. efficiently host the multisite network. Whatever your reasons, this article will walk you through the process.
Before you start
Use an FTP client to upload all files and folders and back up your database using phpMyAdmin. If anything goes wrong, your files and folders will be safe and you can get everything back.
What and how to migrate
There are four things you need to migrate from your multisite network: database tables, download folder, theme files, and plugin files.
After that, you need to locate your website id. Each site in the network is defined by its own unique identifier. This identifies his folder in wp-content / uploads / sites or, if your version of WordPress is older than 3.5, it will be in the folder wp-content / blogs.dir.
How do I find a network ID? Check the URL when you are in the wp-admin dashboard of this site:
Easily create your website with Elementor
Elementor allows you to easily create any website design with a professional look. Stop paying expensive for what you can do yourself. [Free]
Le « XX » est l’ID. Donc, si vous aviez un ID=03, alors l’ID serait “3”.
What to export
Export the site tables from the network database. In this process, you are only moving a "child website", so there is no need to move the entire database.
Go to phpMyAdmin and click on the “Export” tab. Find all the tables that are related to your website. They are going to be determined by the ID number, and will look like this - wp_XX.
The data will be stored in two tables - wp_users et wp_usermeta.
Create a new WordPress site
If you haven't already, install WordPress on your destination server (or local server, if you're doing it on localhost). You can do this with ManageWP, by following these simple step-by-step instructions. One of the great advantages of ManageWP is that it is very easy to follow, even for a real beginner.
Modify the database
Once this is done, it is time to modify the tables in the database. Log into phpMyAdmin on the new WordPress site, drop the tables, and import the SQL file from your old database. The database tables for your new website may not have prefixes for the Site ID, so you will need to drop them. Run the following query to replace instances of wp_XX with your actual site ID:
- Check siteurl SELECT option_value FROM wp_options WHERE option_name = 'siteurl'
Utilisez la valeur ‘siteurl’ pour remplacer l’espace réservé ‘URL_move_from’ pour la prochaine requête. Utilisez l’URL du nouveau site pour remplacer l’espace réservé “URL_move_to” :
- Update URL_move_from and URL_move_to inside single quotes UPDATE wp_options SET option_value = replace (option_value, 'URL_move_from', 'URL_move_to') WHERE option_name = 'home' OR option_name = 'siteurl'; UPDATE wp_posts SET guid = replace (guid, 'URL_move_from', 'URL_move_to'); UPDATE wp_posts SET post_content = replace (post_content, 'URL_move_from', 'URL_move_to');
Once WordPress is installed and the database updated, all you have to do is copy the files from the old one wp-content / uploads / site folder, or if it's an older version of WordPress before 3.5, it will be in the folder wp-content / blogs.dir. In both cases, copy the folder to wp-content / downloads. When this is done, identify the plugins and themes used by the old website and reinstall them again, or move their files to wp-content / plugins et wp-content / themes.
Don't be discouraged yet, you are almost done! Clear the browser cache and log into the WordPress admin section of your website. If you've done these steps correctly, your login credentials will be the same as the original site. Now go to the Permalinks section and save your settings again.
Check and recheck!
Check that all of your links are working and that widgets and plugins are working as expected. If the widgets and plugins aren't working as they should, you can reconfigure them or go back in the process and implement the backups where you need them.
Once you are satisfied that everything is working fine, remove the site from your multisite network. It's time to pull out the party hat and celebrate!
I'm going to kill you for making me wear this hat.
Easily create your Online Store
Download free WooCommerce, the best e-commerce plugins to sell your physical and digital products on WordPress. [Recommended]
Photo credit: Jaguar PS / Shutterstock.com