Whether you started your website on a free hosting subdomain (like `mysite.epizy.com`) or outgrew your original brand name, switching to a clean custom `.com` or `.live` domain is one of the best investments you can make. However, simply changing the domain in WordPress settings without updating your database and redirects will break images and wipe out your Google rankings.
Follow this 5-step SEO-safe domain change checklist to transfer 100% of your search authority to your new domain.
Outgrowing Free Hosting Limits? Claim Our Partner Discounts
Upgrade to fast Hostinger LiteSpeed WordPress Hosting (with an extra 20% referral discount + free domain) or grab low-cost Namecheap cPanel Hosting & Domains with free WHOIS privacy:
Step 1: Register & Point Your New Custom Domain
First, register your new domain (you can grab a discounted `.com` with free lifetime WHOIS privacy at Namecheap or get a free domain bundled with Hostinger Hosting + 20% Off) and add it to your hosting control panel. Follow our guide on How to Point a Domain to Any Web Host.
Step 2: Update Database URLs via phpMyAdmin SQL
After backing up your database (see our 5-minute backup guide), open our Free WordPress SQL Domain & HTTPS Replacer Tool:
- Enter your Old Domain URL and New Domain URL.
- Copy the generated
UPDATE wp_optionsandUPDATE wp_postsSQL queries and execute them inside phpMyAdmin → SQL.
Step 3: Add a Sitewide 301 Permanent Redirect in `.htaccess`
Every link pointing to `olddomain.com/my-post/` must automatically forward visitors and Googlebot to `newdomain.com/my-post/` with an HTTP 301 (Moved Permanently) status code. Test your redirect rules safely in our Free .htaccess RewriteRule Simulator:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^olddomain\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.olddomain\.com$
RewriteRule (.*)$ https://newdomain.com/$1 [R=301,L]Step 4: Submit Google Search Console “Change of Address”
Finally, verify both your old domain and new domain in Google Search Console, go to Settings → Change of address on the old property, and select your new domain so Google migrates your rankings seamlessly!
Frequently Asked Questions (FAQ)
Will changing my domain name destroy my Google search traffic?
Not if you follow proper SEO migration steps: preserve the exact same URL slugs (/post-name/), implement a sitewide 301 permanent redirect from the old domain to the new domain, and submit the Change of Address tool in Google Search Console.
How do I update all old domain links inside my WordPress database?
Use a search-and-replace tool or run targeted SQL UPDATE queries on wp_options, wp_posts, and wp_postmeta via phpMyAdmin.
How long do I need to keep my old domain active with 301 redirects?
Google recommends keeping your old domain registered and 301-redirecting to your new domain for at least 12 months (1 full year) so all backlinks and search index signals transfer completely.