Do you wish to repair the problem of redirecting to an previous area?
While you migrate a WordPress web site to a brand new area, there’s a risk that customers will probably be redirected again to the previous area.
On this article, we’ll present you methods to repair WordPress redirecting to an previous area after migration.
What Causes Redirection to Outdated Area After Migration Subject?
While you’re transferring your WordPress web site to a brand new area, it is very important arrange redirection. This fashion, customers robotically land on the brand new location, and also you get to maintain your key phrase rankings and site visitors.
Nonetheless, redirection to a brand new area could not work correctly, and your guests could be redirected again to the previous area.
One of many predominant causes for this problem is that your web site URL and residential URL values are totally different within the WordPress database tables. You want 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 previous area after migration. If the DNS server shouldn’t be responding or DNS data haven’t been up to date, then your guests gained’t be capable of view your new web site URL.
That stated, let’s see how one can repair WordPress redirecting to the previous area after migration. We’ll cowl totally different strategies, so you may click on the hyperlinks beneath to leap forward to your most well-liked part.
Technique 1: Replace the Web site Deal with in WordPress Settings
The best method to repair this problem is by guaranteeing that the WordPress deal with and web site deal with is similar in your WordPress settings.
In case your Web site Deal with (URL) nonetheless reveals the previous area, then customers will probably be redirected to the earlier URL after migration.
To repair this, merely head to Settings » Basic out of your WordPress admin panel. After that, enter your new area beneath the ‘Web site Deal with (URL)’ area.

When you’re accomplished, merely save your adjustments and go to the brand new area to see if the issue is resolved.
If, nevertheless, the URL fields are greyed out and gained’t allow you to kind a brand new deal with, proceed studying and use one of many different strategies to redirect your area.
Technique 2: Altering Web site URL in WordPress Database
One other technique of fixing the redirecting to the previous area problem 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 internet hosting service. For this tutorial, we will probably be utilizing Bluehost for instance, however the course of is analogous for different internet hosting firms like Hostinger, SiteGround, and so on.
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.

Subsequent, you may scroll right down to the Databases part and click on the ‘phpMyAdmin’ possibility.
You have to to attend for just a few seconds till phpMyAdmin opens.
As soon as it opens, you’ll need to go to the wp_options desk from the navigational panel in your left.
Do observe that every internet hosting service has a distinct naming conference for database tables. Nonetheless, the one you’re searching for will at all times finish in ‘_options.”
For instance, on this tutorial, we’ll click on the ‘staging_45f_options’ desk in Bluehost’s phpMyAdmin.

Subsequent, you’ll need to edit the ‘siteurl’ and ‘house’ choices.
First, go forward and click on the ‘Edit’ button for ‘siteurl’ possibility.

After that, you’ll need to enter the brand new area identify within the option_value area. As soon as that’s accomplished, merely click on the ‘Go’ button.
Now, you may return to the primary wp_options web page and edit the ‘house’ possibility.

Subsequent, you’ll need to enter the brand new area within the option_value area.
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 problem of the previous area redirecting after migration, then it’s best to verify the DNS settings.
At instances, it will possibly take as much as 12 to 48 hours for the change of area identify to take impact. Because of this, web suppliers that don’t have up to date DNS data will redirect customers to the previous 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 problem.
For extra particulars, please see our information on methods to clear your DNS cache on Mac, Home windows, and Google Chrome.
Professional Tip: Use web optimization Plugin to Carry out Full Web site Redirect
While you manually carry out redirection to a brand new area, then there may be at all times an opportunity of errors. Because of this, customers would nonetheless be redirected to the previous area.
A neater approach of organising redirection is through the use of an WordPress web optimization plugin like All in One web optimization (AIOSEO). It presents a robust redirection supervisor that you need to use to redirect your whole web site to a brand new area with none points.

This instrument was constructed by our workforce, and it’s what we use after 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 methods to correctly do a full web site redirect in WordPress.
We hope that this text helped you learn to repair WordPress redirecting to an previous area after migration. You might also wish to see our information on the most typical WordPress errors and methods to repair them and our skilled picks for the must-have WordPress plugins for enterprise websites.
Should you preferred this text, then please subscribe to our YouTube Channel for WordPress video tutorials. You too can discover us on Twitter and Fb.
The publish Find out how to Repair WordPress Redirecting to Outdated Area After Migration first appeared on WPBeginner.


