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

Windows 11 Tips and Hidden Features
240311-site-windows-11-hidden-tips-and-tricks-v2

Up Next

Windows 11 Tips and Hidden Features

Vision Pro App Walkthrough -- VisionOS 1.0.3
VisionOS 1.0.3

Vision Pro App Walkthrough -- VisionOS 1.0.3

Tips and Tricks for the Galaxy S24 Ultra
240216-site-galaxy-s24-ultra-tips-and-hidden-features-2

Tips and Tricks for the Galaxy S24 Ultra

TikTok Is Now on the Apple Vision Pro
tiktok-on-vision-pro-clean

TikTok Is Now on the Apple Vision Pro

Get Your TV Ready for the Big Game: Super Bowl Setup Tips
superbowl-tv-settings-thumb1

Get Your TV Ready for the Big Game: Super Bowl Setup Tips

How to Use a Quest 3 Like the Vision Pro
240202-site-spatial-computing-on-meta-quest-3

How to Use a Quest 3 Like the Vision Pro

How to Make a GPT in ChatGPT-4
howto-createyourowngpt-clean

How to Make a GPT in ChatGPT-4

Tips and Tricks for the Galaxy Watch 6
231120-site-tips-tricks-and-hidden-features-v2

Tips and Tricks for the Galaxy Watch 6

How to Use ChatGPT's New Voice Conversations
how-to-use-chatgpt-voice-chat-00-03-01-13-still003

How to Use ChatGPT's New Voice Conversations

How to Add Multiple Accounts and Set Up a Parent-Supervised Account on the Quest 3
add-accounts-on-quest-3-00-02-59-11-still005

How to Add Multiple Accounts and Set Up a Parent-Supervised Account on the Quest 3

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

Apple to Talk AI in June: This WWDC is a Big Deal
240328-yt-omt-wwdc24-v07

Apple to Talk AI in June: This WWDC is a Big Deal

New Xbox Leaked
240328-yt-xbox-leaked-image-v01

New Xbox Leaked

Hands-On with Ford's Free Tesla Charging Adapter
pic3

Hands-On with Ford's Free Tesla Charging Adapter

Apple and Meta Are Competing for Your Memories
screenshot-2024-03-22-at-17-41-16.png

Apple and Meta Are Competing for Your Memories

Nvidia's Project GR00T vs. Tesla Optimus: Competing Robot Strategies
240321-site-nvidia-project-groot-vs-tesla-optimus-v1

Nvidia's Project GR00T vs. Tesla Optimus: Competing Robot Strategies

What Google Gemini AI on the iPhone Could Look Like
240321-site-apple-and-gemini-ai

What Google Gemini AI on the iPhone Could Look Like

Most Popular All most popular

First Look at TSA's Self-Screening Tech (in VR!)
innovation

First Look at TSA's Self-Screening Tech (in VR!)

Samsung Galaxy S24 Ultra Review: More AI at a Higher Cost
240123-site-samsung-galaxy-s24-ultra-review-4

Samsung Galaxy S24 Ultra Review: More AI at a Higher Cost

'Circle to Search' Lets Users Google From Any Screen
circlesearchpic

'Circle to Search' Lets Users Google From Any Screen

Asus Put Two 14-inch OLEDs in a Laptop, Unleashes First OLED ROG Gaming Laptop
asus-preces-00-00-25-11-still003

Asus Put Two 14-inch OLEDs in a Laptop, Unleashes First OLED ROG Gaming Laptop

Samsung Galaxy Ring: First Impressions
samsung-galaxy-ring-clean

Samsung Galaxy Ring: First Impressions

Best of Show: The Coolest Gadgets of CES 2024
240111-site-best-of-ces-2024-1

Best of Show: The Coolest Gadgets of CES 2024

Latest Products All latest products

Hands-On with Ford's Free Tesla Charging Adapter
pic3

Hands-On with Ford's Free Tesla Charging Adapter

Nuro R3 is an Adorable Self-Driving Snack Bar
240320-site-nuro-r3-first-look-v1

Nuro R3 is an Adorable Self-Driving Snack Bar

First Look: The $349 Nothing Phone 2A Aims to Brighten Your Day
240304-site-nothing-phone-2-first-look-v3

First Look: The $349 Nothing Phone 2A Aims to Brighten Your Day

Best of MWC 2024: Bendable Screens, AI Wearables and More
240229-site-best-of-show-at-mwc

Best of MWC 2024: Bendable Screens, AI Wearables and More

This Concept Laptop from Lenovo Has a Transparent Display
240225-site-lenovo-translucent-laptop-concept-v3

This Concept Laptop from Lenovo Has a Transparent Display

Motorola's Rollable Concept Phone Wraps on Your Wrist
240225-site-motorola-rollable-concept

Motorola's Rollable Concept Phone Wraps on Your Wrist

Latest How To All how to videos

Windows 11 Tips and Hidden Features
240311-site-windows-11-hidden-tips-and-tricks-v2

Windows 11 Tips and Hidden Features

Vision Pro App Walkthrough -- VisionOS 1.0.3
VisionOS 1.0.3

Vision Pro App Walkthrough -- VisionOS 1.0.3

Tips and Tricks for the Galaxy S24 Ultra
240216-site-galaxy-s24-ultra-tips-and-hidden-features-2

Tips and Tricks for the Galaxy S24 Ultra

TikTok Is Now on the Apple Vision Pro
tiktok-on-vision-pro-clean

TikTok Is Now on the Apple Vision Pro

Get Your TV Ready for the Big Game: Super Bowl Setup Tips
superbowl-tv-settings-thumb1

Get Your TV Ready for the Big Game: Super Bowl Setup Tips

How to Use a Quest 3 Like the Vision Pro
240202-site-spatial-computing-on-meta-quest-3

How to Use a Quest 3 Like the Vision Pro