Migrate your Web site
Migrate your Web site
4:26

Migrate your Web site

Internet Routers
A lot of people run their Web sites by paying a Web host for server space. The Web host handles the maintenance of the servers, the actual machines, while you handle the operation of your Web site. You want to pick the right host because moving a Web site is a hassle. Even so, sometimes Web hosts change their terms, lose their quality of service, or even go out of business. Here are some pointers for moving your Web site to a new Web host. We're going to assume you already run a Web site and are familiar with how domain name registrars and Web hosts work in general. For this example, we'll migrate a WordPress blog so that we can show how to move files and databases. Start at your old Web host. Fire up your favorite FTP program; I use FileZilla. It's free and has a lot of the functions that I like. Connect to your old host and navigate to the folder of the Web site that you're moving. Highlight that folder and download it. It should have all your pages, images, all your WordPress files, everything. Downloading the entire folder preserves the directory structure intact. If you already keep a copy of that site locally, don't overwrite the local copy. Instead, copy the current site into a new folder. That way if you discover any issues, you haven't touched your backup. Next, log in to your database management interface, likely MyPHP. Select export. If you have multiple sites in the database, select just the tables from the site you're moving. Choose to compress as a ZIP file. And press Go. Finally, check to see if there are any other site elements in odd places. Sometimes CGI scripts are kept in a directory outside the main site folder. Copy any other data you can think of. Now go to the new Web host. Create a domain record for the new version of the site, but do not redirect the domain name yet. We want to get the new site up and running first. Reverse the process and upload the folder you just downloaded from the old host. Now go to the database interface at the new host. Select import, browse to the zipped file you exported from the old site, and press Go. Finally, restore any of those oddball files. CGI scripts may work a different way with the new host, so read the documentation and put the scripts where they need to go, plus update any paths that change. For instance in WordPress you'll need to update wp-config to point to your new database. Now test the site BEFORE you change the domain name to point to it. Your new Web host should provide a way to browse to your site even without the domain. Some things may be broken if you had absolute paths coded, but you should get the idea if everything is there. Try out all the important functions. Finally, you'll need to redirect the domain. Before you do though, make a slight, insignificant change to one of the pages on the new Web host. That way you'll know when the domain has changed. Go to your domain registrars site. I recommend registering your domain at a different company than your Web host. It just keeps things cleaner. You can transfer domains to a new registrar if you need to. But we won't cover that here. Most registrars have a way to edit the nameservers yourself. These are the servers at your Web host that resolve the domain name to the directory where you have your site. Get the new nameservers from your new host and edit the domain record accordingly. Now wait. Sometimes I've done this and the domain switches over almost immediately, and sometimes it takes a day. This is why you made that subtle change earlier. Once you see the change, you know the domain is now pointed at the new site. Now do your full testing. Including logging into WordPress to make sure the new database works right. And that's it. I recommend keeping the files at the old host for a couple weeks, just until you're sure everything is running properly. But once you're comfortable and the old host's files are out of date anyway, you can go ahead and close that account. And enjoy your new host! I'm Tom Merritt, CNET.com.

Up Next

Cast Your Meta Quest Headset to a TV, Phone or Browser
cast-2

Up Next

Cast Your Meta Quest Headset to a TV, Phone or Browser

MacOS Ventura Continuity Camera Turns Your iPhone Into a Webcam
1203246975312353-pnmdl8bwygpxcjffhlcf-height640.png

MacOS Ventura Continuity Camera Turns Your iPhone Into a Webcam

How to Clean Your Keyboard's Sticky Keys
3keyboards

How to Clean Your Keyboard's Sticky Keys

How to Play Games from PlayStation Plus on PC
psstill

How to Play Games from PlayStation Plus on PC

How to Delete or Disable Your Instagram Account
phoneonorange

How to Delete or Disable Your Instagram Account

Fix Your iPhone Screen With Apple's Self-Service Repair Kit
dsc00641

Fix Your iPhone Screen With Apple's Self-Service Repair Kit

How to Buy a Budget Laptop in 2022
budgetlaptops-00-08-35-15-still001

How to Buy a Budget Laptop in 2022

Google Pay: How to Set Up and Use
googlepay-inhand

Google Pay: How to Set Up and Use

Clean Your AirPods and EarPods Without Damaging Them
yt-howto-clean-airpods-v3

Clean Your AirPods and EarPods Without Damaging Them

Tech Shows

The Apple Core
apple-core-w

The Apple Core

Alphabet City
alphabet-city-w

Alphabet City

CNET Top 5
cnet-top-5-w

CNET Top 5

The Daily Charge
dc-site-1color-logo.png

The Daily Charge

What the Future
what-the-future-w

What the Future

Tech Today
tech-today-w

Tech Today

Latest News All latest news

Cast Your Meta Quest Headset to a TV, Phone or Browser
cast-2

Cast Your Meta Quest Headset to a TV, Phone or Browser

Apple's VR Headset Event Will Be Different
apple-headset

Apple's VR Headset Event Will Be Different

Rad Power Bikes Addresses Gap in Micro-Mobility With the RadTrike
radtrike-00-01-12-05-still001

Rad Power Bikes Addresses Gap in Micro-Mobility With the RadTrike

Best Streaming Devices of 2022
best-streamers-2022-thumb

Best Streaming Devices of 2022

Forget the Kids. These Toys Make Great Adult Gifts
bridgetnerf

Forget the Kids. These Toys Make Great Adult Gifts

See Why the Semi May Be Tesla's Most Important Vehicle
tesla-semi-00-02-40-12-still001

See Why the Semi May Be Tesla's Most Important Vehicle

Most Popular All most popular

Apple's VR Headset Event Will Be Different
apple-headset

Apple's VR Headset Event Will Be Different

Forget the Kids. These Toys Make Great Adult Gifts
bridgetnerf

Forget the Kids. These Toys Make Great Adult Gifts

Best Streaming Devices of 2022
best-streamers-2022-thumb

Best Streaming Devices of 2022

Elon Musk Shows Latest Neuralink Demo of Monkey Typing with its Mind
neuralmonkey

Elon Musk Shows Latest Neuralink Demo of Monkey Typing with its Mind

Best Android Phones of 2022: Samsung, Google, OnePlus and More
1203459317449832-laz1jqjqlhclzhrpcncs-height640.png

Best Android Phones of 2022: Samsung, Google, OnePlus and More

Watch Elon Musk's Semi Event in 9 Minutes
tesla-sb-v1-00-00-02-01-still001.png

Watch Elon Musk's Semi Event in 9 Minutes

Latest Products All latest products

Rad Power Bikes Addresses Gap in Micro-Mobility With the RadTrike
radtrike-00-01-12-05-still001

Rad Power Bikes Addresses Gap in Micro-Mobility With the RadTrike

See Why the Semi May Be Tesla's Most Important Vehicle
tesla-semi-00-02-40-12-still001

See Why the Semi May Be Tesla's Most Important Vehicle

First Look at Archer's Midnight Air Taxi
midnight

First Look at Archer's Midnight Air Taxi

Holoride Hands-On: VR in the Car Is Like a Disney Ride
holoride-00-00-03-12-still003

Holoride Hands-On: VR in the Car Is Like a Disney Ride

Hands-on With All of Microsoft's New Surface Devices
surfacepro9-event-00-00-04-05-still004

Hands-on With All of Microsoft's New Surface Devices

Microsoft Introduces Surface Studio 2 Plus
surfacestudio

Microsoft Introduces Surface Studio 2 Plus

Latest How To All how to videos

Cast Your Meta Quest Headset to a TV, Phone or Browser
cast-2

Cast Your Meta Quest Headset to a TV, Phone or Browser

MacOS Ventura Continuity Camera Turns Your iPhone Into a Webcam
1203246975312353-pnmdl8bwygpxcjffhlcf-height640.png

MacOS Ventura Continuity Camera Turns Your iPhone Into a Webcam

How to Clean Your Keyboard's Sticky Keys
3keyboards

How to Clean Your Keyboard's Sticky Keys

How to Play Games from PlayStation Plus on PC
psstill

How to Play Games from PlayStation Plus on PC

How to Delete or Disable Your Instagram Account
phoneonorange

How to Delete or Disable Your Instagram Account

Fix Your iPhone Screen With Apple's Self-Service Repair Kit
dsc00641

Fix Your iPhone Screen With Apple's Self-Service Repair Kit