search
HomeCMS TutorialWordPressStep-by-step guide to copying a WordPress website

Sometimes you may need to clone your WordPress website. Maybe you want to use it as a template for a new website, or you want to replicate your old website on a new host or new domain.

Sometimes you don't actually need to duplicate your website. If you're moving it to new hosting or a new domain, you may find that following our guide to moving a WordPress website to a new domain can give you all the advice you need.

However, if you do need to duplicate your WordPress site, there are a few ways to do it.

In this tutorial, I will show you two ways to clone a WordPress website. The first one is for a standalone site and the second one is for a site in a WordPress multisite network.

So let’s start with a standalone website, which contains a website and a WordPress installation.

Clone your WordPress website using plugins

The easiest way to clone a WordPress site is to use the free Duplicator plugin. This allows you to create a package containing all the data related to your website, then import it to another location and clone the website there.

复制 WordPress 网站的分步指南

Create starter website package

Start by installing and activating the plugin on the site you want to clone (your starting site).

Now go to Copier in the Administration menu to access the Copier screen.

复制 WordPress 网站的分步指南

To clone your website, you need to create a package. Click the New button to start the process. This will open a new package screen.

复制 WordPress 网站的分步指南

Give your package a name and click the Storage tab to select where you want to store it. With the free version of the plugin, you can store it on the server hosting your website. If you purchase the premium version of the plugin, you can choose cloud storage options like Dropbox and Google Drive.

复制 WordPress 网站的分步指南

Open the Archivetab to select archive database tables and files. To run a quick clone, you can leave it as default and continue to the next step.

复制 WordPress 网站的分步指南

Click the Next button to continue.

The plugin will then scan your site to check if it can be copied. If there are any issues, it generates notifications and warns you.

复制 WordPress 网站的分步指南

Here the plugin flags the fact that there are two very large files in the upload folder. I can choose to omit these from the package if I want, or I can leave them in the package and risk problems when importing the package into a new site. If you use good hosting then there shouldn't be a problem. We recommend using SiteGround for reliable WordPress hosting.

复制 WordPress 网站的分步指南

If you do filter certain files, click the link to rescan your site before building the package so that the installer files have the correct metadata about package size and content .

If you were notified and would like to proceed, please check this box. Then (this also applies if you don't receive any notifications), click the Build button to build your package.

The plugin will start the process of building the package and show you a progress screen.

复制 WordPress 网站的分步指南

Once completed, it will show you a success screen with a link to download the file. You'll need the archive and installer, so download them.

复制 WordPress 网站的分步指南

Import the package to your new website

Now it's time to import the package from the old server and use it to populate your new website.

You will need to access the new server via FTP as you will have to upload the installer and archive files to it. Upload them to a new empty directory in the root directory, such as yourdomain.com/duplicate.

Important: Do not install WordPress on a new server. The installer will install it for you, including any customizations you made in the starting site.

You can find the installer and archive files on your computer, in your downloads folder, or wherever you save them. The installer is a PHP file named installer.php and the archive is a zip file. Do not unzip the file: upload it as a zip file.

There should now be two files in the directory: the installer and the archive.

NOTE: Before copying the zip file to the server, make sure that the file has been fully downloaded and that the file has been fully copied before proceeding to the next part of the process.

In your new site, go to newdomain.com/folder/installer.php with your browser, where folder is the name of the directory you uploaded the file to.

复制 WordPress 网站的分步指南

NOTE: If you receive an error message, it may be because you have visited this screen before and the zip file has been fully uploaded to your server. Just wait and refresh when finished.

This will take you to the first screen of the import process. If you want to configure the import, you can expand the tab and browse the options; otherwise, leave it as is. Select the Terms and Notices checkbox and click the Next button.

The plugin will extract the archive file and take you to the Install Database screen.

复制 WordPress 网站的分步指南

Here you can choose to create a new database or delete all data from the existing database and overwrite it. Since WordPress is not yet installed on your server, you will create a new database. Enter a name for the new database and the username and password you have set up with your hosting provider.

Tip: If you have problems connecting to create a database, try creating a new empty database in phpMyAdmin and then replace the existing database with that database and its user via the replicator option .

Select the desired options and click the Test Database button. When the test runs fine, click the Next button.

You will see a pop-up window to check if you want to continue. Click the OK button.

The Replicator plugin will then install the database and take you to the Update Data screen.

复制 WordPress 网站的分步指南

You can change the URL and path of the new website if desired. They will now be located in the folder where you placed the installer and zip files. However, you may want to edit these fields and use the root directory. Then click the Next button.

You will then be taken to the final screen of the Duplicator installer, which will tell you to log into your new WordPress site and delete all the installer files. This is important for security reasons.

复制 WordPress 网站的分步指南

If you check the Auto-delete checkbox, the plugin will automatically delete these file locations the first time you log into a new account. Your login details will be the same as those for the old website.

Now log in to your new website and you will find that it is the same as your old website. You have successfully cloned your WordPress website.

Clone a WordPress site in a multisite network

This is even easier if you run a multisite network and want to clone one or more of the sites. Cloning a website in a network is useful when you want to create a similar website, perhaps for another part of your business. Or maybe you have a base site that is used as a template for new sites on your network, and you want to clone that site.

To clone a site in a WordPress multisite network, use the NS Cloner - Site Copier plugin.

复制 WordPress 网站的分步指南

First install the plugin and activate it through the network.

Then go to NS Cloner in the WordPress admin menu. Select the website you want to clone and give the cloned version of the website a name.

复制 WordPress 网站的分步指南

Then scroll down and click the Clone button.

The plugin will run the cloning process and give you a success message telling you that the cloning is complete. This may be fast for small sites, but may take a while for larger sites with a large number of files. If you want, you can make a cup of coffee while you wait.

复制 WordPress 网站的分步指南

That's it! You now have a copy of the site in its new location on the network. You can now log into your new website and make any adjustments you need to perfect your new website.

Summary

If you need to move your website or create a copy of your website in a new location, you can easily clone your website without having to manually copy the files and database tables to a new WordPress installation, which will save you a lot of time. p>

Whether you are copying your website to a fresh WordPress installation or cloning it in a multisite network, the steps above will show you how to create a copy of your website.

Envato The best WordPress themes and plugins on the market

Explore thousands of the best WordPress themes created on ThemeForest and the leading WordPress plugins on CodeCanyon. Buy these high-quality WordPress themes and plugins and improve your website experience for you and your visitors.

复制 WordPress 网站的分步指南

Here are some of the best-selling and emerging WordPress themes and plugins in 2020.

The above is the detailed content of Step-by-step guide to copying a WordPress website. For more information, please follow other related articles on the PHP Chinese website!

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Can I learn WordPress in 3 days?Can I learn WordPress in 3 days?Apr 09, 2025 am 12:16 AM

Can learn WordPress within three days. 1. Master basic knowledge, such as themes, plug-ins, etc. 2. Understand the core functions, including installation and working principles. 3. Learn basic and advanced usage through examples. 4. Understand debugging techniques and performance optimization suggestions.

Is WordPress a CMS?Is WordPress a CMS?Apr 08, 2025 am 12:02 AM

WordPress is a Content Management System (CMS). It provides content management, user management, themes and plug-in capabilities to support the creation and management of website content. Its working principle includes database management, template systems and plug-in architecture, suitable for a variety of needs from blogs to corporate websites.

What is the WordPress good for?What is the WordPress good for?Apr 07, 2025 am 12:06 AM

WordPressisgoodforvirtuallyanywebprojectduetoitsversatilityasaCMS.Itexcelsin:1)user-friendliness,allowingeasywebsitesetup;2)flexibilityandcustomizationwithnumerousthemesandplugins;3)SEOoptimization;and4)strongcommunitysupport,thoughusersmustmanageper

Should I use Wix or WordPress?Should I use Wix or WordPress?Apr 06, 2025 am 12:11 AM

Wix is ​​suitable for users who have no programming experience, and WordPress is suitable for users who want more control and expansion capabilities. 1) Wix provides drag-and-drop editors and rich templates, making it easy to quickly build a website. 2) As an open source CMS, WordPress has a huge community and plug-in ecosystem, supporting in-depth customization and expansion.

How much does WordPress cost?How much does WordPress cost?Apr 05, 2025 am 12:13 AM

WordPress itself is free, but it costs extra to use: 1. WordPress.com offers a package ranging from free to paid, with prices ranging from a few dollars per month to dozens of dollars; 2. WordPress.org requires purchasing a domain name (10-20 US dollars per year) and hosting services (5-50 US dollars per month); 3. Most plug-ins and themes are free, and the paid price ranges from tens to hundreds of dollars; by choosing the right hosting service, using plug-ins and themes reasonably, and regularly maintaining and optimizing, the cost of WordPress can be effectively controlled and optimized.

Is WordPress still free?Is WordPress still free?Apr 04, 2025 am 12:06 AM

The core version of WordPress is free, but other fees may be incurred during use. 1. Domain names and hosting services require payment. 2. Advanced themes and plug-ins may be charged. 3. Professional services and advanced features may be charged.

Is WordPress easy for beginners?Is WordPress easy for beginners?Apr 03, 2025 am 12:02 AM

WordPress is easy for beginners to get started. 1. After logging into the background, the user interface is intuitive and the simple dashboard provides all the necessary function links. 2. Basic operations include creating and editing content. The WYSIWYG editor simplifies content creation. 3. Beginners can expand website functions through plug-ins and themes, and the learning curve exists but can be mastered through practice.

Why would anyone use WordPress?Why would anyone use WordPress?Apr 02, 2025 pm 02:57 PM

People choose to use WordPress because of its power and flexibility. 1) WordPress is an open source CMS with strong ease of use and scalability, suitable for various website needs. 2) It has rich themes and plugins, a huge ecosystem and strong community support. 3) The working principle of WordPress is based on themes, plug-ins and core functions, and uses PHP and MySQL to process data, and supports performance optimization.

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
WWE 2K25: How To Unlock Everything In MyRise
1 months agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

DVWA

DVWA

Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

EditPlus Chinese cracked version

EditPlus Chinese cracked version

Small size, syntax highlighting, does not support code prompt function

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Safe Exam Browser

Safe Exam Browser

Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.