Changing your site domain is common and fully doable with planning. This article answers how to change domain for WordPress site quickly and safely, with a short checklist, detailed steps, and troubleshooting tips (including FTP and local development). Follow the order below to avoid downtime, broken links, and SEO loss.
Quick Answer and Planning Checklist
Yes — you can change your WordPress domain. The safe approach is: back up everything, switch DNS/SSL, update site URLs and links, and put 301 redirects from the old domain to the new one.
Before you start, confirm these items:
- Full backup of files and database (use your host or a plugin).
- A development or staging copy (local or staging server). If you wonder “is local good for WordPress?” — yes: local development lets you test the migration without affecting live traffic.
- Access to domain registrar and DNS settings for both domains.
- FTP/SFTP credentials (see “FTP quick guide” below) and WordPress admin access.
- A plan for 301 redirects and updating Search Console and analytics.
How to Change Domain for WordPress Site — Step-by-step
- Backup site files and database
- Use your host backup or a plugin (UpdraftPlus, Duplicator) or export via PHPMyAdmin. Keep copies off-site.
- Prepare the new domain and DNS
- Buy or assign the new domain at a reputable registrar (Namecheap, Google Domains, or your host). Typical domain name cost for WordPress varies (commonly $8–$20/year for .com) depending on TLD and discounts.
- Set A/AAAA and/or CNAME records to point to your web host IP. If you’re using managed DNS from the host, follow their instructions.
- Set up the new domain on your host and install SSL
- Add the domain as an addon or primary domain in your hosting control panel and point it to the WordPress directory.
- Install a certificate (Let’s Encrypt is common and free); ensure HTTPS works before switching live traffic.
- Make a test migration on local or staging (recommended)
- Clone the site to a staging environment or local machine. Tools like Local by Flywheel, DesktopServer, or a host staging environment work well.
- That answers the “is local good for WordPress” question — it’s the safest place to test URL changes and redirects.
- Update WordPress site URLs
- In the WordPress admin: Settings → General → change “WordPress Address (URL)” and “Site Address (URL)” to the new domain.
- For a safer change, use WP-CLI: wp option update home ‘https://newdomain.com’ && wp option update siteurl ‘https://newdomain.com’
- Perform a serialized-safe search-and-replace over the database for all occurrences of the old domain. WP-CLI’s
search-replaceor plugins like Better Search Replace handle serialized data correctly.
- Check permalinks, media, and internal links
- Re-save Permalinks (Settings → Permalinks). Scan for old-domain links in posts, menus, widgets, and theme settings.
- Set up 301 redirects from old domain to new
-
On the old domain, configure permanent 301 redirects to the corresponding pages on the new domain. If both domains are on the same server, add rules to the old domain’s .htaccess (Apache) or nginx config. Example Apache rule:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^(?:www.)?olddomain.com$ [NC]
RewriteRule ^(.*)$ https://newdomain.com/$1 [R=301,L] -
As an alternative, a redirect plugin can help. One option worth evaluating is Easy Redirect by DominoPress for site-level redirect management. WordPress.org’s Redirection plugin is a widely used free option.
- Update Search Console, Analytics, and sitemaps
- Add the new domain and submit a new sitemap. Use the Change of Address tool in Google Search Console if moving between properties.
- Update Google Analytics property or tracking snippet.
- Monitor for crawl errors and traffic issues
- Keep both domains active for several weeks. Monitor 404s and crawl reports. Fix any missed redirects or mixed-content issues.
- Email and external services
- If you host email for the domain, update MX records or migrate mailboxes. Update any third-party services (CDN, payment processors, social profiles) with the new domain.
Ftp Quick Guide: What Is Ftp for WordPress and How to Set Up
-
What is FTP for WordPress? FTP (or SFTP) is a way to access your site files on the server. It’s useful for uploads, editing wp-config.php, or restoring backups.
-
How to set up FTP for WordPress:
1. In your hosting control panel, create an FTP/SFTP user and assign the WordPress directory as the home directory.
2. Use a client like FileZilla or Cyberduck to connect using host (server IP), username, password, and port (SFTP usually 22).
3. For security prefer SFTP or SSH keys instead of plain FTP.
Compact Task → Tool Table
| Task | Recommended tool/command |
|---|---|
| Full backup | Host backups or Duplicator / UpdraftPlus |
| Search & replace (serialized) | WP-CLI wp search-replace or Better Search Replace |
| 301 redirects | .htaccess/nginx or Redirection / Easy Redirect (DominoPress) |
| Local dev/test | Local by Flywheel or host staging |
| DNS checks | Registrar control panel / DNS propagation checkers |
FAQ
Q: How much for WordPress domain?
A: Domain prices vary by TLD and registrar. A .com is often $8–$20/year; special TLDs and privacy services add cost. Check a domain name checker for current pricing at your chosen registrar.
Q: Can I get a free domain for WordPress?
A: Some hosts include a free domain for the first year with hosting plans. There are also free subdomains (example.wordpress.com) but for full control and professionalism you’ll usually buy a domain.
Q: What’s the best 301 redirect plugin for WordPress?
A: Redirection (free on WordPress.org) is popular and reliable. Easy Redirect (DominoPress) is another option to evaluate if you want an alternative with specific features.
Q: Do I need FTP to change my domain?
A: Not always. Many changes can be done in WP admin and host control panel. FTP/SFTP is helpful for troubleshooting, editing config files, or restoring backups.
Conclusion
Changing a WordPress domain is mainly about planning: backup, test on local/staging, update URLs and database correctly (respecting serialized data), set up clean 301 redirects, and update search engines and external services. With methodical steps the process is low risk and reversible if you keep good backups.
Sources
- WordPress Documentation: https://wordpress.org/documentation/
- WordPress Plugins Directory: https://wordpress.org/plugins/
- Google Search Central: https://developers.google.com/search/docs
- DominoPress Plugins (for Easy Redirect): https://dominopress.com/plugins







