Driver FixRecommendedSound, Wi-Fi or graphics acting up? Check drivers firstFind missing or outdated drivers fast.Check DriversOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsPC HealthRecommendedCrashes, freezes, slowdowns? Check your PC nowSpot repairable issues before they interrupt work.Check PC×
Skip to content
World desk4 min

How to Update URLs When Moving Your WordPress Site

Learn when a WordPress move requires URL changes, how to update the two address settings, replace stored links safely, and check a Multisite migration.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

If your WordPress site is moving to a new domain or path, update its WordPress and Site Address settings, then replace old URLs in the database with a serialization-aware tool. Back up the site files and database first. If only the server is changing and the public URLs stay the same, you may not need to replace URLs at all.

First determine whether the URLs are changing

A server move and a URL move are different jobs. WordPress’s migration guide treats transferring the files and database as the core of a move; a changed domain or path adds URL-setting and stored-reference work.

As an Amazon Associate I earn from qualifying purchases.

  • Same domain and path: Transfer the files and database. If the new server uses different database details, update the relevant credentials in wp-config.php. Do not run a domain replacement just because the hosting server changed.
  • New domain or path: Set the destination WordPress URLs and update old references stored in the database. A changed scheme, such as moving from http:// to https://, is also a URL change.

Back up the files and database

Before changing settings or running a replacement, make a recoverable copy of the complete WordPress directory and database. If you are working on staging, verify that the command or tool points to the staging database and the intended old and new URLs—not production.

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

Set the WordPress Address and Site Address

For a single-site installation with dashboard access, open Settings → General and review these fields:

#1 Best Overall
Sandisk 2TB Extreme Portable SSD, Up to 1050MB/s, USB-C, USB 3.2 Gen 2, IP65 Water and Dust Resistance, Updated Firmware, External Solid State Drive, SDSSDE61-2T00-G25
  • Get NVMe solid state performance with up to 1050MB/s read and 1000MB/s write speeds in a portable, high-capacity drive(1) (Based on internal testing; performance may be lower depending on host device & other factors. 1MB=1,000,000 bytes.)
  • Up to 3-meter drop protection and IP65 water and dust resistance mean this tough drive can take a beating(3) (Previously rated for 2-meter drop protection and IP55 rating. Now qualified for the higher, stated specs.)
  • Use the handy carabiner loop to secure it to your belt loop or backpack for extra peace of mind.
  • Help keep private content private with the included password protection featuring 256‐bit AES hardware encryption.(3)
  • Easily manage files and automatically free up space with the SanDisk Memory Zone app.(5). Non-Operating Temperature -20°C to 85°C
  • WordPress Address (URL): Where the WordPress core files are located.
  • Site Address (URL): The public address visitors use to reach the site.

They are often identical, but can differ when WordPress is installed in a subdirectory and the public site is served from another location. Enter the full address, including the scheme such as https://, and omit a trailing slash. If WP_HOME or WP_SITEURL is defined in wp-config.php, those constants can override or lock the dashboard fields; check them if the values cannot be edited there.

Replace old URLs without corrupting data

Changing the two settings does not necessarily update links saved in posts, media references, themes, widgets, or plugin settings. For command-line access, WP-CLI documents this form:

Rank #2
Sandisk 1TB Portable SSD, Up to 800MB/s Read Speeds, Black (Old Model)
  • Solid state performance with up to 800MB/s read speeds in a portable drive. (Based on internal testing; performance may be lower depending on host device, interface, usage conditions and other factors. 1MB=1,000,000 bytes.)
  • Back up your content and memories on a storage solution that fits seamlessly into your mobile lifestyle.
  • Take it with you on your adventures—up to two-meter drop protection means this durable drive can take a beating. (Based on internal testing.)
  • Secure it to your belt loop or backpack for extra peace of mind thanks to the tough rubber hook.
  • From Sandisk, a brand professional photographers trust to take on assignments.

wp search-replace '<old-url>' '<new-url>'

Replace the examples with the exact strings you intend to change, and confirm the database and table scope before execution. The WP-CLI search-replace documentation says the command handles PHP serialized data intelligently and does not change primary-key values. Its default scope is tables registered to the current WordPress site; on Multisite it targets only the current site unless you specify --network.

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

This matters because some WordPress data stores values in PHP-serialized form, where string lengths are recorded. A plain SQL or text replacement across arbitrary tables can leave those lengths inconsistent and damage stored values. Prefer a method that explicitly handles serialized data. WordPress’s migration guide also describes dashboard migration plugins as an option; evaluate any plugin for your own installation rather than assuming a particular one is maintained or required.

Rank #3
Sale
Seagate 2TB Portable Hard Drive | USB 3.0 (STGX2000400)
  • Easily store and access 2TB to content on the go with the Seagate Portable Drive, a USB external hard drive
  • Designed to work with Windows or Mac computers, this external hard drive makes backup a snap just drag and drop
  • To get set up, connect the portable hard drive to a computer for automatic recognition no software required
  • This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable
  • The available storage capacity may vary.

Choose a method that fits your access and scope

  • Dashboard migration tool: A practical route when you have working admin access. Confirm that the tool handles serialized data and that it is operating on the intended site.
  • WP-CLI: Suited to administrators with shell access who can verify the old and new strings and table scope before running the command.
  • Direct database editing: Best left to experienced administrators who understand the schema and serialization risks; avoid blanket raw SQL replacement across arbitrary tables.

Whichever method you use, keep the backup and test on a copy when practical. On a Multisite network, do not assume the single-site procedure covers every domain and path.

Treat WordPress Multisite as a separate migration

Multisite can store domain and folder references in network tables as well as individual sites’ options. WordPress’s migration guidance calls for reviewing network tables and per-site options; test the procedure on a copy and verify the resulting domain and path for each site.

Rank #4
Sale
Sandisk 1TB Extreme Portable SSD, Up to 2000MB/s Transfer Speeds-New Model
  • NEARLY 2X FASTER THAN OUR PREVIOUS GENERATION(8) – move 1,000 high-res photos in under 60 seconds(6) with up to 2000MB/s transfer speeds(2).
  • IP65 RATING AND UP TO 3M DROP PROTECTION(3) – protects against spills and drops.
  • POCKET-SIZED – fits easily in pockets and small bags.
  • SPACE TO OWN YOUR AI CONTENT – speed and capacity to download your high-res clips and photo edits.
  • 256-BIT AES ENCRYPTION(4) – helps keep private files secure with password protection.

WP-CLI’s --network option expands the search-and-replace scope beyond the current site. Use it only when a network-wide replacement is intended, and review the target strings and tables before proceeding. A single-site replacement may not update all network-level references.

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

Test the moved site and repair navigation

After the move and replacement, visit the new public address and the administration area. Check representative posts and pages, images, navigation, and login. If the site uses permalinks, revisit the permalink configuration and adjust rewrite rules as needed; inspect menus for old subdirectory references. If the public address changed, consider redirecting the old address to the new one so existing links can still reach the site.

Best Value
Seagate Portable 5TB External Hard Drive HDD – USB 3.0 for PC, Mac, PS4, & Xbox - 1-Year Rescue Service (STGX5000400), Black
  • Easily store and access 5TB of content on the go with the Seagate portable drive, a USB external hard Drive
  • Designed to work with Windows or Mac computers, this external hard drive makes backup a snap just drag and drop
  • To get set up, connect the portable hard drive to a computer for automatic recognition software required
  • This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable
  • The available storage capacity may vary.

DNS, TLS certificates, CDN settings, and hosting control-panel steps vary by provider and deployment, so there is no single WordPress-specific sequence for those parts. Confirm them with the relevant host or service documentation if the new address does not resolve or load securely.

Quick Recap

Bestseller No. 2
Sandisk 1TB Portable SSD, Up to 800MB/s Read Speeds, Black (Old Model)
Sandisk 1TB Portable SSD, Up to 800MB/s Read Speeds, Black (Old Model)
From Sandisk, a brand professional photographers trust to take on assignments.
$188.90
SaleBestseller No. 3
Seagate 2TB Portable Hard Drive | USB 3.0 (STGX2000400)
Seagate 2TB Portable Hard Drive | USB 3.0 (STGX2000400)
This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable; The available storage capacity may vary.
$129.99
SaleBestseller No. 4
Sandisk 1TB Extreme Portable SSD, Up to 2000MB/s Transfer Speeds-New Model
Sandisk 1TB Extreme Portable SSD, Up to 2000MB/s Transfer Speeds-New Model
IP65 RATING AND UP TO 3M DROP PROTECTION(3) – protects against spills and drops.; POCKET-SIZED – fits easily in pockets and small bags.
$249.99
Bestseller No. 5
Seagate Portable 5TB External Hard Drive HDD – USB 3.0 for PC, Mac, PS4, & Xbox - 1-Year Rescue Service (STGX5000400), Black
Seagate Portable 5TB External Hard Drive HDD – USB 3.0 for PC, Mac, PS4, & Xbox - 1-Year Rescue Service (STGX5000400), Black
This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable; The available storage capacity may vary.
$229.99

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.

Leave a Reply

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

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

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Windows Errors? Fix Them Before They SpreadFree repair scan
Crashes, No Sound, or Screen Glitches?Free driver scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.