Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

iTechGuides is reader-supported. When you buy through links on our site, we may earn an affiliate commission. As an Amazon Associate I earn from qualifying purchases. Learn more

The reliable way to clone WordPress is to move both the complete file set and the database, then perform a serialization-aware URL replacement on the destination copy. Update the destination home and siteurl values, flush rewrites and caches, and test the private clone before changing DNS. Copying only posts, uploads, or files leaves references and settings behind, which is why images, styles, forms, and internal links often fail after a move.

What a complete WordPress clone contains

A clone is a working copy of the whole application, not an export of blog content. Preserve the source site’s files and database as a matched pair.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Component What it contains Why it matters during cloning
WordPress core files The application files in the WordPress directory They provide the runtime and must match the imported database and configuration.
wp-content The active and inactive themes, plugins, uploads, and related files Theme settings, plugin code, media, and generated assets are commonly referenced by database records.
Database Posts, pages, users, options, menus, widget settings, plugin data, and serialized PHP values It contains URLs, configuration, and relationships that do not exist in the file copy.
Configuration outside the database Web-server rules, DNS, cron jobs, CDN settings, mail services, and third-party callbacks These are not automatically moved by a WordPress file-and-database copy.

The WordPress Developer Handbook warns that changing a domain or URL creates additional migration concerns. A clone that omits the database can look like a fresh installation; a clone that omits wp-content can lose its theme, plugins, or media.

Choose the clone’s purpose before you start

Staging on the same domain family

For a private development copy, use a separate hostname or path and protect it with HTTP authentication, a host-level access control, or an equivalent gate. Keep search-engine indexing disabled while the copy is being tested. A staging clone may intentionally remain disconnected from production services such as payment, email, analytics, and webhooks.

#1 Best Overall
Sale
Compressed Air Duster,130000RPM Super Power Cordless Air Duster,Rechargeable Brushless Blower,3 Gear Adjustable Blower with LED Light,Dust Remover for Computer/House/Outdoor/Car
  • Powerful Turbo Fan:CAGIWIRU Electric Air Duster have reached speed up to 130000RPM,Can efficient remove dust and debris.With LED light and Three Adjustable Speed to meet with different cleaning tasks.
  • With Attached USB C Fasting Charging cable.Charing 3 hours,Enjoy up to 240 minutes of use on the lowest setting, For third speed can use for 25mins.with four charging options to meet with your needs.
  • Wide Application:Upgraded attached 5 different nozzles,making it suitable for a variety of scenes, such as car,pet, pc, keyboards, and other electronic devices. It also serves for office and home clean duster.
  • Handy Design & Portable:Cordless air duster electric nozzle is Light weight and small size, design and comfortable to hold and space saving, convenient to carry around. You can put it in your room or inside the car without taking up space.
  • Warranty & Support: Our Electric air duster comes with 5 years warranty and 24/7 customer service. During this period, if you have any questions,pls kindly feel free to contact us.

A new public domain

When the destination domain changes, replace the old absolute URL throughout the copied database and update WordPress’s URL options. Plan redirects from old public URLs, verify certificates, and review every external service that still names the old host.

A temporary test copy

A disposable test environment still needs a real database import and a complete file set. Do not use a partial content export to judge whether a migration will work: it cannot reveal serialized settings, plugin tables, media references, or rewrite behavior.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

1. Freeze the source and create a rollback point

  1. Schedule a maintenance window. Pause publishing and transactions long enough to make the database and files represent the same moment. If orders, comments, form submissions, or memberships continue during the copy, those records can be absent from the destination.
  2. Record the environment. Note the WordPress version, PHP version, active theme, active plugins, database type, multisite status, web-server rules, and any scheduled jobs. This list gives you a baseline when a destination behaves differently.
  3. Export the database. From the source WordPress directory, WP-CLI supports:
wp db export backup.sql
  1. Copy the site files. Include the WordPress directory, especially wp-content, themes, plugins, and the complete uploads tree. Preserve file names, permissions, and symbolic links where your hosting setup uses them.
  2. Store the backup separately. Keep the SQL dump and file archive outside the destination document root, and verify that the dump can be opened and the archive contains recent uploads. Do not overwrite this rollback copy while troubleshooting.

The handbook’s migration guidance specifically calls for backing up the WordPress directory, images, plugins, other files, and database before moving a site.

2. Build an isolated destination

Create the hosting and database resources

Provision the destination hosting account, database, database user, and document root. Match the PHP and database versions first; upgrade only after the clone is working. Configure the destination’s web root so requests reach the copied WordPress files rather than an installer or an empty directory.

Protect staging from visitors and crawlers

Require authentication or an equivalent access restriction before importing production data. A password is preferable to relying only on a noindex directive, because crawlers, shared links, and accidental exposure can still reach an unprotected host. Once access is restricted, keep the site’s indexing setting disabled until the final cutover.

Copy files and import the database

Upload the source files, create or edit the destination configuration with the new database credentials, and import the dump. WP-CLI documents the matching import command:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #2
EVEO® Screen Cleaner Spray Kit (Streak-Free) TV Screen Cleaner for Smart TV, Lcd, LEd, Oled | Computer Screen Cleaner Spray and Wipe Microfiber Cloth - TV, Monitor, Laptop, iPad, Car - 6.7oz 1 Pack
  • Screen Cleaner is Your Screen’s New Bestfriend! - EVEO is proud to present a screen cleaner that’s perfectly suited for your TV. Meet your new screen cleaner, computer screen cleaner, laptop cleaner, iPad cleaner, Macbook,tv cleaner or any other electronic device. Our screen cleaner spray and wipe along with the included plush microfiber cloth, easily removes dust, fingerprints & other smudges on the screen’s surface. Clean effectively for a streak-free screen
  • Gentle on your Screens - Our screen cleaner spray and wipes is compatible to be used even for the most sensitive LCD, LED, CRT, and OLED screens in proper use. Be at ease knowing that this product is compatible with all the major brands: LG, SONY, Samsung, Sharp, iPad, iPhone, Android screens, Kindle, PC monitors - we’ve got you covered! Can be used as LCD screen cleaner, tv cleaner, smart tv screen cleaner, and more
  • Premium Super Soft Plush Microfiber Cloth - Included in this efficient screen cleaning kit. This screen cleaner spray and wipe has our signature plush microfiber cloth specially designed to comply with screens and monitors and leave them streak-free. Has been shown to effectively absorbs stubborn stains, zero streaks, and no fiber shedding. Always use this together with our screen cleaner for the best results
  • Easy-to-Use Screen Cleaner Kit + microfiber cleaning cloth - The EVEO Screen Cleaning Kit will easily be your new favorite tool when it comes to taking care of the things you love most, quick and easy solution for a streak-free screen. Simply screw on the sprayer gun on the screen cleaner bottle. Spray the cleaning liquid onto the microfiber cloth, then wipe the screen until desired cleanliness & shine is achieved.
  • Quality Screen Care Kit Worth Purchasing - Enjoy a convenient Screen Cleaner anytime, anywhere you need it. Your satisfaction is our top priority. We stand behind the quality of our products and that’s why, you shouldn’t be worrying at all. We manufacture the Best Screen Cleaner. and can be used for laptop cleaning kit, laptop screen cleaner, tv screen cleaner for smart tv. MacBook screen cleaner, monitor cleaner or screen cleaner spray for electronic devices with microfiber cleaning cloth
wp db import backup.sql

Run WP-CLI from the destination WordPress directory. If the destination uses a different table prefix, confirm that the configuration and imported tables agree before troubleshooting URLs.

3. Set the destination URL values

WordPress stores its primary addresses in the wp_options table as home and siteurl. If the domain or path changes, set both values to the destination address, including the correct scheme and path:

wp option update home 'https://new.example'
wp option update siteurl 'https://new.example'

Use the actual destination URL and do not add a trailing slash unless that is how the existing site is configured. If the site defines WP_HOME or WP_SITEURL in wp-config.php, those constants can override database values; make the configuration and database agree, or remove the temporary override after testing.

Changing only siteurl is not a complete migration. Content, theme options, widgets, menus, plugin settings, and serialized values can still contain the old address, so continue with a database-wide replacement on the destination copy.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

4. Preview and run a serialization-safe URL replacement

Preview the replacement first

From the destination WordPress directory, preview an old-to-new URL replacement without changing data:

wp search-replace 'https://old.example' 'https://new.example' --all-tables --dry-run

The WP-CLI command searches and replaces strings in the database. Its serialization-aware behavior is important because many WordPress options and plugin settings are stored as PHP serialized arrays or objects. The dry run reports the tables and rows that would change so you can detect an incorrect scheme, path, table prefix, or destination before committing.

Rank #3
BladeHawks RGB Gaming Mouse Pad Extra Large Extended 31.5x12 Inch-Black
  • 【Large size】:Measuring 800 x 300 mm/ 31. 5×12 inches, which is wider and taller than others. Large mouse pad can perfectly fit your keyboard and mouse of any size, and there is also ample space for peripherals such as phones, tablets, etc.
  • 【LED backlight mouse pad】:Blade Hawks RGB mouse pad provides 7 static modes and 7 dynamic modes will give you the options you are looking for. Power-off memory function remembers the last lighting mode you selected. The super glow fiber Chroma will give you a colorful gaming setup that you want.
  • 【Anti-slip rubber base】:Made from Natural rubber, this gaming mousepad will firmly grip your desktop, allowing you to enjoy the ultimate precision in the games you are most passionate about. It also comes with a texture that enhances this ability even further.
  • 【Smooth and waterproof surface】: Micro-textured cloth surface, for extremely precise mouse control and a smooth movement. When liquid splashes on the gaming mouse pad, it forms water droplets and slides down. Will not delay your work or gameplay.
  • 【Plug and play】: This mouse and keyboard pad is powered by USB, plug and play, no driver required. One button control light modes. Press one time to change the lighting mode, press twice to change the brightness, press and hold about 3 seconds turn ON/OFF.

Run the confirmed replacement

After reviewing the dry-run output, run the same command without --dry-run:

wp search-replace 'https://old.example' 'https://new.example' --all-tables

Use the exact old and new strings. If the source used both HTTP and HTTPS, or several old paths, perform separate reviewed replacements for each real variant. Keep the pre-migration database dump until the clone has passed testing.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Protect GUIDs unless you have a specific reason

WP-CLI’s examples show --skip-columns=guid. GUID values are intended to remain stable identifiers, so do not change them merely because the public domain changed. If your migration has a documented reason to alter them, understand the consequences first and keep a rollback copy.

Handle multisite deliberately

In multisite, determine whether you are moving one site or the entire network. A network-wide operation can change URLs for every site; a single-site operation must target the correct tables and address. Use WP-CLI’s documented multisite controls only when the scope is clear, and review domain-mapping, network administration, and subdirectory or subdomain settings separately.

5. Refresh rewrites, caches, and generated state

After the database replacement, regenerate rewrite rules and clear object caches from the destination directory:

wp rewrite flush
wp cache flush

Also clear any page cache, reverse-proxy cache, CDN cache, or host-level cache that is serving the old host name. Regenerate plugin- or theme-specific assets only after the new URLs are active. A stale cache can make a correct database migration appear broken, while stale rewrite rules can produce 404 responses for valid pages.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #4
Sale
Vaydeer Wrist Rest for Keyboard and Mouse, Computer Ergonomic Wrist Support Pad, Soft Memory Foam Arm Cushion for Desk, Palm Hand Office Laptop Typing
  • 【Softer and More Comfortable】Vaydeer wrist rest has unique diamond pattern, which is the combination of softness and aesthetics. The materials of wrist rest are improved into higher quality memory foam and covered with silky smooth lycra. The computer wrist rest makes you as comfortable and cushiony as like rest your wrists on clouds.
  • 【Ergonomic Wrist Saver】The wrist rests for keyboard and mouse comes with a 17.32×3.15×0.83 inch keyboard wrist pad and a 5.94×3.15×0.83 inch mouse wrist support. Based on ergonomic design, the unique concave shape is the perfect fit for your wrist joints. The wrist rest pad fits most computer keyboards and laptops, improve hand and wrist posture, release your wrist and arm stress.
  • 【Non-Slip Rubber Bottom】Featuring an anti-skid silicone base on the bottom, this wrist keyboard support stays firmly in place on your desk, preventing the padding from sliding around, ensuring stable and consistent wrist support during extended computer sessions.
  • 【Better Experience & Pain Relief】Our keyboard arm rest is beneficial to alleviate the soreness caused by direct contact and friction between your arm and a hard desk surface, reducing the risk of wrist fatigue or carpal tunnel. The soft texture of memory foam can evenly distribute the pressure around your wrists and provide good support with just enough give.
  • 【Helpful in Multiple Scenarios】Whether you're working, studying, writing, typing, gaming, this keyboard and mouse rest combo is an essential accessory to add comfort and support to your hands and wrists. It’s also a great gift for men, women, family, friend, coworker, gamer, teacher, etc.

6. Validate the private clone before DNS changes

Crawl the clone while it is still private. Use representative pages rather than checking only the home page.

Area to test Checks Typical symptom of a missed migration step
URLs and navigation Home page, several posts and pages, category and tag archives, menus, pagination, and internal links Old-domain links, redirect loops, or 404 responses.
Media and assets Images, downloadable files, thumbnails, CSS, JavaScript, fonts, and theme background images Broken images, unstyled pages, console errors, or mixed-content warnings.
Accounts Login, logout, password reset, user roles, and an administrator session Cookie failures, unexpected redirects, or inability to access the dashboard.
Forms and transactions Contact forms, confirmation emails, payment test mode, uploads, and spam protection Messages sent to the old endpoint, missing mail, or callbacks rejected by a third party.
Search and metadata WordPress search, canonical tags, XML sitemaps, robots directives, and any SEO-generated URLs Canonical links or sitemaps naming the old domain, or a staging copy exposed to indexing.
Integrations Analytics, webhooks, cron jobs, CDN rules, DNS records, and web-server redirects Events, scheduled tasks, or external callbacks still reaching the old host.

Compare source and clone systematically

Check a sample from each content type and compare HTTP status codes, final URLs, page source, and browser-console warnings. Search the destination database for the old hostname after replacement; any remaining matches need classification. Some values are intentionally external, such as a payment provider or an image hosted on another service, while others are stale internal references.

Check mixed content and certificates

If the destination uses HTTPS, inspect image, script, stylesheet, and font requests for HTTP URLs. Confirm that the destination certificate covers the hostname and that HTTP requests redirect to HTTPS without creating a loop. Test both the canonical hostname and any intended aliases.

7. Cut over safely

  1. Lower DNS TTL ahead of time when practical. A shorter time-to-live can make the planned change propagate sooner, although resolvers may retain records according to their own behavior.
  2. Take a final content backup. If publishing or transactions resumed during testing, export the latest database and copy new uploads before the switch.
  3. Point DNS to the validated destination. Update the relevant A, AAAA, CNAME, or managed-host record, then verify that the request reaches the intended document root.
  4. Enable public indexing only at launch. Remove temporary staging restrictions and restore the intended indexing setting after the production hostname resolves correctly.
  5. Keep the old site available. Do not immediately delete it. Preserve the old files and database while logs and monitoring show that normal traffic, forms, redirects, and scheduled jobs work on the new host.
  6. Re-crawl after propagation. Test from more than one network and check server logs for 404s, redirect loops, failed callbacks, and requests still arriving at the old site.

Retain the pre-migration backup until the new site has completed a normal operating period and any late-arriving transactions or submissions have been reconciled.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Common failure modes and fixes

Only siteurl was changed

Symptom: WordPress loads, but content links, theme settings, widgets, or plugin screens still reference the old host. Fix: Run a reviewed, database-wide wp search-replace on the destination copy, including all relevant tables, and account for serialized data.

SQL was edited with a plain-text replacement tool

Symptom: A plugin loses settings, widgets disappear, or PHP reports unserialization errors. Cause: Serialized values contain length information; changing a URL’s length without updating that metadata corrupts the value. Fix: Restore the clean dump and use WP-CLI or another serialization-aware migration tool.

Best Value
Sale
Under Desk Cable Management Tray No Drill, Metal Mesh Cable Management Under Desk with Clamp Mount, 2 Hole Cable Tray with Wire Management and Cord Organizer for Home Office Standing Desk
  • 【No Drill Mounted】Cable management tray can be assembled in as little as 3 minutes or less-simply. Side clips easily clampe the edge of desk, pass through the holes on the sides, and secure excess cables with baskets. Desk cable management supports inward or outward installation to meet your needs in different scenarios, and provides you with great convenience when collecting and organizing wires.
  • 【Rubber Pad Protects Desk】Wire organizer under desk built-in soft rubber pads on the clamp protect your desk from scratches, so you will not damage your furniture or office.
  • 【Sturdy and Beautiful】Cord management under desk is made of high-quality carbon steel and holds about 15 lbs. The wire basket has 2 holes on each side of the tray to enable your cables to pass freely. Cable baskets are suitable for desk thickness use from 0.4" to 2.4".
  • 【Space Saving & Keep Organized】Desk cable management tray holds all your power cords, outlet strips, USB hubs and computer transformers hidden from your feet, and the data cables will not enter the vacuum cleaner to keep your desk clean and tidy. Desk wire organizer is also suitable for use in the kitchen and outdoors.
  • 【Reduce Safety Risks】Cable tray under desk keeps all plugs away from your kids, no more worry about tripping. Using 2 holes wire tray saves extra space, helps you easily cabling and wire protection. The mesh design is not easy to accumulate dust, but avoids safety accidents caused by messy wires.

Rewrites or caches were not refreshed

Symptom: The database contains the new URL, but pretty permalinks return 404s or pages continue to show old links. Fix: Run wp rewrite flush, wp cache flush, and clear any host, proxy, page, or CDN cache.

The staging clone was indexable

Symptom: Search results show duplicate pages or the staging host appears in canonical data. Fix: Protect staging before import, disable indexing during validation, remove the restriction only for the intended production hostname, and re-crawl after cutover.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Non-WordPress systems were overlooked

Symptom: The site works in a browser but mail, scheduled jobs, analytics, webhooks, CDN behavior, or redirects fail. Fix: Audit DNS, web-server configuration, cron definitions, email forms, analytics properties, API allowlists, and every third-party callback separately; these are outside the WordPress database replacement.

Old and new sites diverged during testing

Symptom: The clone passes checks but recent comments, orders, or uploads are missing after launch. Fix: Freeze writes for the final copy, export a fresh database, copy new media, import again if necessary, and repeat the URL replacement and validation steps.

Which migration method fits your workflow?

Method Best fit Strength Watch for
WP-CLI export, import, and search-replace Developers, repeatable staging pipelines, and scripted moves Official commands are scriptable, auditable, and handle serialized values intelligently. Requires shell access, careful scope selection, and separate handling for DNS and external services.
Migration plugin Administrators who prefer a guided interface Can bundle file transfer, database export, and find-and-replace in one workflow. Verify that the current version supports your host, multisite layout, database size, and serialized data; keep an independent backup.
Managed WordPress staging or migration Teams whose host provides staging, backups, and migration assistance Infrastructure setup, isolation, and parts of the cutover can be integrated. Confirm current staging limits, URL-replacement behavior, backup retention, DNS control, and how production data is synchronized.

Regardless of method, the acceptance criteria are the same: complete files and database, correct destination URL values, serialization-safe replacement, refreshed rewrites and caches, private validation, and a rollback plan.

Automation checklist for repeatable clones

  • Fail the job unless the source backup and destination database import complete successfully.
  • Run wp search-replace with --dry-run first and save its report for review.
  • Keep production credentials, payment keys, email credentials, and webhook secrets out of a shared staging copy; replace or disable them according to your environment policy.
  • Apply authentication and indexing protection before making the clone reachable.
  • Flush rewrites and caches after replacement, then run automated HTTP checks for representative URLs and assets.
  • Record the source and destination versions, replacement strings, database dump name, and cutover time so a rollback can be executed without guesswork.

The WP-CLI common-tasks documentation page reports “First published — March 17, 2026” and “Last updated — October 14, 2026.” Command behavior and hosting integrations can change, so confirm options against the version installed in your environment before scripting a production migration.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.