How to move wordpress singnal site to wordpress multisite

To move a normal wordpress site to a subpage in a multisite network, you can do the following steps. Suppose you want to convert to in multisite network, perform the following steps


Tạo trang con trên mạng netword

Access Các trang web của tôi > Netword admin > Trang web > Thêm mới. For example, if you have added, in the list of child sites, click on chỉnh sửa, then in the address bar of the browser will appear the ID of the subpage as wp-admin/network/site-info.php?id=7. will have an ID of 7, remember.


Di chuyển nội dung hình ảnh từ singnal site vào trang con

Copy the Theme, Plugin active on to the respective directory of the multi-page network (

Particularly, the image folder on is slightly different, as follows.

On site, Copy all files, subdirectories of wp-content/uploads/ to /wp-content/uploads/site/7/

Directory number 7 is the ID of

Compress the folder to copy

If the same vps, execute the following command:

cp -av /var/www/* /var/www/

If other than vps, remove the necessary files and folders to reduce the size then compress again

cd  /var/www/
tar -zcvf uploads-7.tar.gz *

Part site /var/www/

Part multisite /var/www/

Copy the zipped folder into multisite, unzip

cd /var/www/
tar -xvf plugins-7.tar.gz

Xuất database của singnal site

Access the database of the site, export the database which does not include the wp_usermeta and wp_user tables. See picture below.

Export SQL data for website migration to a multipage network

Save the file to your computer and give it a name like: move-data.sql


Sửa database trước khi Import

Open the move-data.sql file just saved above with a text editor, for example, Sublime text, Notepad ++ or Notepad…

Tìm và thay thế

Thay thế url website

Tìm và thay thế tất cả bằng

Thay thế wp_ với ID trang con

Tìm `wp_ và thay thế tất cả bằng `wp_7_
(số 7 là ID trang con tương ứng như đã nói ở trên)

Lưu lại

Lưu lại file move-data.sql vừa chỉnh sửa


Import database vào mạng Multisite

  1. Backup data before performing the next steps (risk prevention).
  2. In the database of the multisite network (, find and delete the database tables of, specifically in this article, find and delete wp_7_
  3. Import the corrected move-data.sql file into the multisite network database. Successful import will reappear the database table wp_7_

Now visit again to see what happens. You can see that the logo and Main menu may not be correct, you just need to go to the theme manager and fix it. Most importantly, the correct images and content are displayed.


Chạy domain riêng cho trang con trong mạng

Subpages in multile networks often have domains in the form of subdomains or subfolder domains. And currently wordpress supports mapping domain without plugin. s in this article, using instead of we do the following (the ssh section applies to webinoly, with other servers there will be their own way to map domain):

Replace the sub domain with its own domain
  1. Point the domain to the ip of the server
  2. Visit: My websites> Netword admin> Website
  3. Edit
  4. Replace to in the URL field and save your changes. (see picture)
  5. Access ssh to mapdomain and create ssl, see command below
sudo site
sudo site -ssl=on

Now you can manage websites on your multisite network easily.

We will be happy to hear your thoughts

Leave a reply

Register New Account
Reset Password
Shopping cart