WordPress Redirecting to an Old Domain: Find the Rule Before Changing It

Fix WordPress Redirects to Old Domain After Migration
A migrated WordPress site can send visitors back to its previous domain because of application settings, server redirects, a proxy rule or cached responses. The useful first question is not which plugin to install. It is which layer is issuing the redirect.

A migrated WordPress site can send visitors back to its previous domain because of application settings, server redirects, a proxy rule or cached responses. The useful first question is not which plugin to install. It is which layer is issuing the redirect.

Record the complete redirect chain

Test a representative page as a logged-out visitor and record each status code and destination. Include HTTP and HTTPS, the www and non-www hostnames, and a URL with a query string. A browser address bar shows only the final location; a network trace shows where the unexpected step begins.

A page that loads correctly but contains links to the old domain has a different problem from a server response that redirects immediately. Check menus, buttons, embedded assets and form destinations separately. Also confirm which server the hostname resolves to. Reaching an old server is not the same as WordPress issuing a redirect.

Review the authoritative settings

Inspect the WordPress site and home addresses, any configuration constants overriding them, the hosting control panel, server rules and any proxy or CDN redirects. Do not add another redirect at every layer. Identify the owner of the wrong rule and correct that source. The official WordPress migration guide explains the application-level considerations.

Replace stored URLs carefully

When content still contains the old domain, use a migration method that understands WordPress data rather than an indiscriminate text edit of a database export. Keep a backup and preview the affected records. Some stored values are structured or serialized, and a naive replacement can damage them. Review internal links and media after the change.

Protect the intended old-to-new mapping

The old public URLs may still receive visits and links. Keep a deliberate mapping to their relevant new destinations where appropriate. Avoid sending every old article to the homepage. Confirm that the new site does not redirect back to the old site and create a loop.

Check the migration beyond the homepage

Test an article, a service page, a form, a media file and any checkout or login flow. Inspect canonical URLs, sitemap entries and analytics configuration. Clear only the relevant caches, then repeat the logged-out test. Keep the previous setup available until the acceptance checks pass and document any remaining DNS or cache delay.

Reference: Official WordPress migration guidance.

Where old-domain redirects usually come from

When a migrated WordPress site keeps sending visitors to the old domain, the cause is almost always in one of these places:

  • WordPress settings: the WordPress Address and Site Address fields still show the old domain.
  • wp-config.php: WP_HOME or WP_SITEURL constants override the dashboard settings.
  • .htaccess or server rules: an old redirect rule sends traffic back to the previous domain.
  • CDN or proxy: Cloudflare page rules or redirect rules still point to the old host.
  • Plugins: redirect or SEO plugins keep old rules.
  • Cache: browsers and caching layers remember old 301 redirects.

Why this matters for SEO

A redirect loop or a redirect back to the old domain tells search engines conflicting things about which domain is the real one. Rankings can drop, pages can fall out of the index and backlinks lose value. After the fix, check that the new domain is the canonical everywhere, that the sitemap lists new URLs, and that Google Search Console has the Change of Address set up when moving domains.

Post-migration checklist

  • Old URLs 301 to the matching new URLs, not the home page.
  • Canonical tags, sitemaps and schema use the new domain.
  • Internal links and images use the new domain.
  • Forms, checkout and email notifications work.
  • Analytics, Search Console and ad tracking are updated.

Our SEO services and managed web hosting team handle domain migrations so rankings and leads are protected.

Preventing domain problems during a migration

Plan the move before changing anything:

  • Export a full list of current URLs and their traffic.
  • Lower DNS TTL a day before the switch.
  • Set the new domain in WordPress only after files and database are copied.
  • Use a serialization-safe search and replace for stored URLs.
  • Add one set of 301 redirects at the server or CDN level.
  • Keep the old hosting active for a few days as a fallback.

After the move

Monitor Google Search Console for crawl errors and indexing changes daily for the first two weeks. Update Google Business Profile, social profiles and directories with the new domain, and ask important partners to update their links. Most migrations that follow this process recover rankings within weeks. Our WordPress development team plans and executes migrations with a documented rollback plan.

Frequently Asked Questions

Why does my WordPress site redirect to the old domain?

The old domain is still set in WordPress settings, wp-config.php, server rules, a CDN or a redirect plugin.

How do I stop WordPress redirecting to the old domain?

Find which layer issues the redirect, fix that setting, then update stored URLs with a safe search and replace.

Will changing domains hurt SEO?

Temporarily it can, but proper 301 redirects and Search Console Change of Address protect rankings. See our SEO services.

Who can migrate my site safely?

Our web hosting team.

Share This Post
Need quick help? Let’s Talk About Your Growth

For a faster response, call (416) 273-9030. Otherwise, fill out the form below and our team will contact you.

This field is for validation purposes and should be left unchanged.
Select the Services(Required)
Google reviews

What our clients say about Canada Create™

EXCELLENT
Google star 1Google star 2Google star 3Google star 4Google star 5
Based on 97 reviews
Posted on Google Google
lazer Runner of Aurora profile picture
lazer Runner of Aurora
Google star 1Google star 2Google star 3Google star 4Google star 5
We’ve had a great experience working with Canada Create for our SEO and digital marketing. They have made a noticeable difference in our Google rankings and online visibility, which has been very important for our business. As the owner of Lazer Runner in Aurora, I highly recommend Canada Create to any business looking to improve their online presence and grow through Google. They are professional, knowledgeable, responsive, and truly care about their clients’ success. Thank you, Canada Create, for your great work and continued support! Lazer Runner Of Aurora
Posted on Google Google
Rozbeh Kamran-Disfani profile picture
Rozbeh Kamran-Disfani
Google star 1Google star 2Google star 3Google star 4Google star 5
Canada Create has been an excellent marketing and branding partner for our dental practice. Their understanding of local SEO, digital marketing, social media, content creation, Google visibility, and AI optimization really stood out to us. A dental practice depends heavily on trust, reputation, patient experience, and being discoverable when someone is searching for a dentist. Canada Create understands how to bring those pieces together and communicate the quality of a practice naturally. I would highly recommend Canada Create to dentists, dental clinics, and other healthcare professionals looking to improve their online presence, local search visibility, branding, and organic growth.
Posted on Google Google
Amir Kasra Mesgarpour Tousi profile picture
Amir Kasra Mesgarpour Tousi
Google star 1Google star 2Google star 3Google star 4Google star 5
I had a great experience working with this business. They helped me build my tutoring website from scratch and guided me through the entire process. I knew nothing about how the process worked, but they were professional, patient, and incredibly helpful. They took the time to understand what I wanted, handled the setup and design, and made sure everything worked properly. I’m very happy with the final result and would definitely recommend them to anyone who needs help creating a professional website or getting their business online.
Posted on Google Google
khatereh mokhtari profile picture
khatereh mokhtari
Google star 1Google star 2Google star 3Google star 4Google star 5
Canada Create has been doing an amazing job managing our social media. Their team consistently creates professional, creative posts and stories for our Instagram, Facebook, and TikTok, and the quality of the content has honestly exceeded our expectations. What impresses us most is that they don’t just post for the sake of posting. The content is well thought out, visually engaging, and represents our business professionally across every platform. They understand our brand and consistently come up with fresh ideas without us having to manage the process. We’re extremely happy with the work Canada Create has done for us and highly recommend their team to any business looking for professional social media management and content creation.
Posted on Google Google
KIIA MUSIC profile picture
KIIA MUSIC
Google star 1Google star 2Google star 3Google star 4Google star 5
As an influencer, I've gotten multiple collab opportunities through Canada Create, and every experience has been well-organized and mutually beneficial. They genuinely care about building long-term relationships between businesses and creators, rather than one-time promos. Their expertise in SEO, social media marketing, influencer marketing, content strategy, Instagram growth, YouTube marketing, and brand awareness makes them an excellent partner for companies that want real engagement. Whether you're a local business trying to improve your online presence, or an influencer looking to work with reputable brands, I strongly recommend connecting with Canada Create Agency
Posted on Google Google
Elanaz Ghasemi profile picture
Elanaz Ghasemi
Google star 1Google star 2Google star 3Google star 4Google star 5
I've worked with Canada Create on several influencer campaigns, and they consistently bring high-quality collab opportunities that actually fit with my audience. Unlike agencies who only push paid promotions, they understand organic social media marketing and long-term brand growth. Their team makes collaborations smooth, professional, and beneficial for both businesses and creators. If you're an influencer looking for consistent brand partnerships on Instagram, YouTube, or TikTok, I highly recommend reaching out to Canada Create. And if you're a business that wants authentic influencer marketing, content creation, and stronger organic reach instead of just chasing ads, they're one of the best marketing agencies I've worked with in the GTA.
Posted on Google Google
Zohreh Talebi profile picture
Zohreh Talebi
Google star 1Google star 2Google star 3Google star 4Google star 5
We hired Canada Create to help strengthen the online marketing for Marvel Car Clinic and the results have been very positive. They developed our new website and managed the Google Ads strategy around our main automotive services including paint protection film (PPF), vehicle wraps and ceramic coating. The biggest improvement for me has been the overall quality of our online presence. Customers can now clearly see what we offer, the website is much more professional and our advertising is bringing relevant people directly to the services they are searching for. Their team understands conversion and lead generation, not just design. Everything from the website layout to the advertising campaigns feels like it was created with the goal of getting more customers. Great communication, professional work and strong results. I would recommend Canada Create to any Toronto or GTA business looking for Google Ads management, website development and digital marketing.
Posted on Google Google
Hossein Esmaeili profile picture
Hossein Esmaeili
Google star 1Google star 2Google star 3Google star 4Google star 5
We’ve had a great experience working with Canada Create on the digital marketing for Marvel Car Clinic. They completely improved our online presence with a professionally designed new website and a much stronger Google Ads strategy. Our business specializes in car wraps, paint protection film (PPF), ceramic coating and automotive protection services, so attracting the right type of customer is extremely important. The Canada Create team took the time to understand our services, our target market and what actually makes a customer contact us. Since launching the new website and Google Ads campaigns, we’ve seen a noticeable improvement in the quality of inquiries coming in. The website looks professional, is easy to navigate and presents our car wrap, PPF and ceramic coating services much better than before. What we appreciate most is that they focus on results instead of simply running ads. Communication has been great, changes are handled quickly and the team is always looking for ways to improve the campaigns. If you’re looking for a digital marketing agency in Toronto for Google Ads, website design and lead generation, I would definitely recommend Canada Create.