WordPress

How to Fix WordPress Redirecting to Old Domain After Migration

Do you wish to repair the difficulty of redirecting to an outdated area?

Once you migrate a WordPress web site to a brand new area, there’s a risk that customers shall be redirected again to the outdated area.

On this article, we’ll present you the right way to repair WordPress redirecting to an outdated area after migration.

How to fix WordPress redirecting to old domain after migration

What Causes Redirection to Outdated Area After Migration Challenge?

Once you’re transferring your WordPress website to a brand new area, it is very important arrange redirection. This manner, customers mechanically land on the brand new location, and also you get to maintain your key phrase rankings and visitors.

Nonetheless, redirection to a new domain might not work correctly, and your guests could be redirected again to the outdated area.

One of many fundamental causes for this concern is that your website URL and residential URL values are totally different within the WordPress database tables. It’s essential to make it possible for each these values result in your new area.

Apart from that, DNS points may also trigger customers to redirect to the outdated area after migration. If the DNS server isn’t responding or DNS information haven’t been up to date, then your guests received’t have the ability to view your new web site URL.

That stated, let’s see how one can repair WordPress redirecting to the outdated area after migration. We are going to cowl totally different strategies, so you may click on the hyperlinks under to leap forward to your most popular part.

Technique 1: Replace the Website Tackle in WordPress Settings

The best method to repair this concern is by guaranteeing that the WordPress tackle and website tackle is similar in your WordPress settings.

In case your Website Tackle (URL) nonetheless reveals the outdated area, then customers shall be redirected to the earlier URL after migration.

To repair this, merely head to Settings » Normal out of your WordPress admin panel. After that, enter your new area below the ‘Website Tackle (URL)’ subject.

Site address URL

When you’re accomplished, merely save your modifications and go to the brand new area to see if the issue is resolved.

If, nevertheless, the URL fields are greyed out and received’t allow you to kind a brand new tackle, proceed studying and use one of many different strategies to redirect your area.

Technique 2: Altering Website URL in WordPress Database

One other technique of fixing the redirecting to the outdated area concern is by updating the location URL within the WordPress database tables.

You’ll be able to simply entry the database utilizing the cPanel supplied by the WordPress hosting service. For this tutorial, we shall be utilizing Bluehost for example, however the course of is comparable for different internet hosting corporations like Hostinger, SiteGround, and many others.

First, you’ll have to log in to the internet hosting service management panel. After that, merely click on on the ‘Superior’ tab from the menu in your left.

Bluehost's PhpMyAdmin tool

Subsequent, you may scroll all the way down to the Databases part and click on the ‘phpMyAdmin’ possibility.

You have to to attend for a couple of seconds till phpMyAdmin opens.

As soon as it opens, you will have to go to the wp_options desk from the navigational panel in your left.

Do notice that every internet hosting service has a distinct naming conference for database tables. Nonetheless, the one you’re searching for will all the time finish in ‘_options.”

For instance, on this tutorial, we’ll click on the ‘staging_45f_options’ desk in Bluehost’s phpMyAdmin.

Open the options table

Subsequent, you will have to edit the ‘siteurl’ and ‘residence’ choices.

First, go forward and click on the ‘Edit’ button for ‘siteurl’ possibility.

Enter siteurl

After that, you will have to enter the brand new area title within the option_value subject. As soon as that’s accomplished, merely click on the ‘Go’ button.

Now, you may return to the principle wp_options web page and edit the ‘residence’ possibility.

Enter the home field value

Subsequent, you will have to enter the brand new area within the option_value subject.

After coming into the worth, click on the ‘Go’ button.

Technique 3: Flush DNS Cache on Your PC

Should you’re nonetheless unable to resolve the difficulty of the outdated area redirecting after migration, then you must examine the DNS settings.

At occasions, it may possibly take as much as 12 to 48 hours for the change of area title to take impact. Because of this, web suppliers that don’t have up to date DNS information will redirect customers to the outdated area.

You merely flush the DNS cache in order that it will get the newest info and the brand new web site URL. This additionally helps resolve the DNS server not responding issue.

For extra particulars, please see our information on how to clear your DNS cache on Mac, Windows, and Google Chrome.

Professional Tip: Use search engine marketing Plugin to Carry out Full Website Redirect

Once you manually carry out redirection to a brand new area, then there’s all the time an opportunity of errors. Because of this, customers would nonetheless be redirected to the outdated area.

A better approach of establishing redirection is by utilizing an WordPress SEO plugin like All in One SEO (AIOSEO). It presents a robust redirection supervisor that you need to use to redirect your total website to a brand new area with none points.

Full site redirect in All in One SEO

This instrument was constructed by our crew, and it’s what we use once we’re migrating web sites to a brand new area or merging two websites into one. You’ll be able to be taught extra by following our step-by-step information on how to properly do a full site redirect in WordPress.

We hope that this text helped you discover ways to repair WordPress redirecting to an outdated area after migration. You might also wish to see our information on the most common WordPress errors and how to fix them and our professional picks for the must-have WordPress plugins for business sites.

Should you appreciated this text, then please subscribe to our YouTube Channel for WordPress video tutorials. You too can discover us on Twitter and Facebook.

The publish How to Fix WordPress Redirecting to Old Domain After Migration first appeared on WPBeginner.



Leave a Reply

Your email address will not be published. Required fields are marked *