A thorough approach to moving sites to multi site networks

Recently, we demonstrated in our post how to use the plug-in to move the word press site to a multi site network. This approach is fully applicable at many sites. But what if the site settings were more complicated? If you use a plug-in to move a site, you can move both the content (posts, pages, custom post types, menus – all content) and the component. But the site settings are not allowed to be moved. If you have installed heavy plug-ins (e.g. e-commerce plug-ins) or made a lot of adjustments to the site settings, you must go to the management screen of the new site for settings. Manually replicate actions performed on the previous site. The
This can be painful. This takes time and is completely unreliable. What about missing something important? If your site has many settings, it is difficult to determine whether you have all the content. Therefore, this post will show you a more thorough and stable way to move your site to a multi site network. Manually move the site – overview includes 6 steps, many of which are the same as using plug-ins. Create a new (empty) site on the network. Create and edit a copy of the wp_options database table from the previous site. Copy the theme and plug-ins of the previous site and upload them to the WP content directory on the network. Perform content and user export and import. Import the edited database table into the new site. Perform the export of the previous site component settings and import them into the new site. This is a considerable number of steps, and it is not an easy thing. You should be familiar with manually uploading files and database tables. The
Note: if you are used to manually moving a single site from one location to another, you may think the process will take a long time. This is because of the way multisite stores user data. On a single site, all content and database tables can be copied from one site and imported into a second site. However, multi site allows users to store the entire network only once, rather than individually for each site. That is, to import users from the old site to the new site and assign the correct content, you must use the import tool. The
To emulate posts as needed, you need the following tools: FTP has a built-in code editor, such as FileZilla or coda. Access the site database through the tool phpMyAdmin that the hosting provider must grant access to. Male FileZilla is an excellent free FTP client. Here we go! Before start – back up the multisite network before performing a backup operation. Do not skip this step. If there is a problem, you need a backup to recover. For this purpose, it is recommended to use the snapshot Pro plug-in. The
A common way to create a new site on a network is to create a new site on a multi site network. When finished, record the corresponding ID. Multisite provides a unique digital ID for each site in the network. You can navigate to the sites screen on the network management screen, browse for a new site, and then click Edit to browse. This opens the edit screen for the new site. View the URL of this screen in your browser. The site ID is the last two places at the end of the URL. Please write it down. The first step in copying topics and plug-ins is to create a copy of the topics and plug-ins of the previous site and the wp\u options table in the database. Let’s start with themes, plug-ins, and uploads. The
My startup site is as follows: Open and move themes and plug-ins to FTP programs or code editors
Navigate to t’s WP content directory (called the previous site). a copy of the following folder: Save the theme plug-in on a local computer that you can easily find. Always set a private folder when doing this. Uploading themes and plug-ins to the network now requires uploading themes and plug-ins copied from the previous site to the network. Find the WP content directory on the network, and then open the theme and plug-in folders in turn. The
Upload the files or folders of each theme and plug-in to the correct directory. If the plug-in or theme of the previous site has been installed on the network, you do not need to upload it again. Note: if you do not want to perform this operation manually, you only need to install relevant topics and plug-ins on the network. Manual execution is preferred because it is faster. Selecting this path does not require activation of themes and plug-ins. After importing the database table, it will be activated automatically. The best way to copy and edit the wp\u options table is to use phpMyAdmin. In any case, you must use it to import the form into the new site, so you can also start immediately. The
Export form in the management screen of the hosting provider of the previous site, navigate to phpMyAdmin and browse the database running the previous site. Note: if multiple databases are running, WP config on the site. You can view the PHP file to find the database behind the site to be migrated. Browse and select the wp_options table. Now scroll down to find the with selected: drop-down list. Select export. If a message appears, click the move button. The SQL file will be ed to the local computer. Copy to a folder created for archiving. The
Edit SQL file open the ed SQL file. Use the FTP editor to select the find and replace options (Ctrl-F or cmd-f in many editors). Enter wp_in the find field and wp_xx_in the replace field. Where XX is the two digit ID of the new site on the network. (my case is wp_71_, there are many websites on the network!) If there is one in the code editor, click the all button. If the program provides one, click replace all. Wait for the program to perform the replacement. Now repeat this step for the site URL. In the find field, enter the URL of the previous site, and in the replace field, enter the URL of the new site. Make sure all backslashes are consistent. I prefer to omit http:\/\/ or WWW and use the root URL (for example, rachelmccollin.com). The
Male note: if you use domain mapping to redirect the old domain name to the new website, please do not worry. After the site is migrated, set the domain mapping. Now, use the network generated URL. Save and close the file. The next step in exporting and importing content is to use the WordPress import tool to export content from the old site and import it into the new site. Export content from previous sitego to Tools > export from the previous site’s administration screen. Male unless you only want to export a specific post type, please select all content options and click the \
Import the content to the site before the new site, and delete all stacked content generated when the site was created before importing the content. The WordPress importer plug-in must be installed before importing content from the previous site. Network management
Navigate to the sub plug-in screen and install it (you need to search WordPress importer). Now, in the administration screen of the new site, navigate to Tools > Import and scroll to WordPress at the bottom of the list. Click the importer run link. WordPress prompts you to select a file to upload. Click the file selection button, and then select the file on your computer (in the folder unless moved). Remember, we are looking for XML files. When finished, click the file upload and import buttons. Next, you are prompted to assign the content to an existing creator or import creator on the network. Select the options that apply to you. You are assigning my post to my existing user name, but you may need to import the creator. Finally, select the and import attachments option to copy the media files from the old site and insert them into the correct location on the new site. Click Submit. After importing the imported content, all are completed will be displayed! Information. Note: only users with assigned content are imported. If there are other users (such as subscribers) on the site, they must be imported separately. To do this, you can use the cimy user manager plug-in. Importing tables into the network database you must now import the wp\u options table for the site into the network database. After uploading themes and plug-ins, it is important to perform this setting. Most of these settings are related to themes and plug-ins. Open network phpMyAdmin. Navigate to the wp_options table for the new site (in my case, wp\u 71\u options) and select. Male scroll down and select drop from the with selected drop-down list. If a message appears, click the Yes button. Now, click the import tab at the top of the phpMyAdmin screen to view the import screen. Click the \

Author:

Leave a Reply

Your email address will not be published. Required fields are marked *