Do you wish to have to mend the problem of redirecting to an outdated area?

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

On this article, we can display you the way to repair WordPress redirecting to an outdated area after migration.

How to fix WordPress redirecting to old domain after migration

What Reasons Redirection to Outdated Area After Migration Factor?

Whilst you’re transferring your WordPress site to a brand new area, it is very important arrange redirection. This fashion, customers mechanically land at the new location, and also you get to stay your key phrase scores and site visitors.

Then again, redirection to a brand new area won’t paintings correctly, and your guests can be redirected again to the outdated area.

Probably the most major reasons for this factor is that your website URL and residential URL values are other within the WordPress database tables. You wish to have to make certain that each those values lead on your new area.

But even so that, DNS problems too can reason customers to redirect to the outdated area after migration. If the DNS server isn’t responding or DNS data haven’t been up to date, then your guests gained’t have the ability to view your new site URL.

That mentioned, let’s see how you’ll repair WordPress redirecting to the outdated area after migration. We can duvet other strategies, so you’ll click on the hyperlinks beneath to leap forward on your most well-liked segment.

Means 1: Replace the Web page Cope with in WordPress Settings

One of the best ways to mend this factor is by means of making sure that the WordPress deal with and website deal with is identical on your WordPress settings.

In case your Web page Cope with (URL) nonetheless displays the outdated area, then customers shall be redirected to the former URL after migration.

To mend this, merely head to Settings » Normal out of your WordPress admin panel. After that, input your new area underneath the ‘Web page Cope with (URL)’ box.

Site address URL

Whenever you’re carried out, merely save your adjustments and discuss with the brand new area to look if the issue is resolved.

If, alternatively, the URL fields are greyed out and gained’t will let you sort a brand new deal with, proceed studying and use one of the crucial different find out how to redirect your area.

Means 2: Converting Web page URL in WordPress Database

Some other manner of adjusting the redirecting to the outdated area factor is by means of updating the website URL within the WordPress database tables.

You’ll be able to simply get right of entry to the database the usage of the cPanel supplied by means of the WordPress webhosting provider. For this educational, we can be the usage of Bluehost for example, however the procedure is identical for different webhosting firms like Hostinger, SiteGround, and many others.

First, you’ll wish to log in to the webhosting provider regulate panel. After that, merely click on at the ‘Complicated’ tab from the menu in your left.

Bluehost's PhpMyAdmin tool

Subsequent, you’ll scroll right down to the Databases segment and click on the ‘phpMyAdmin’ possibility.

It is very important look ahead to a couple of seconds till phpMyAdmin opens.

As soon as it opens, it is important to cross to the wp_options desk from the navigational panel in your left.

Do be aware that every webhosting provider has a unique naming conference for database tables. Then again, the only you’re on the lookout for will all the time lead to ‘_options.”

As an example, on this educational, we can click on the ‘staging_45f_options’ desk in Bluehost’s phpMyAdmin.

Open the options table

Subsequent, it is important to edit the ‘siteurl’ and ‘house’ choices.

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

Enter siteurl

After that, it is important to input the brand new area identify within the option_value box. As soon as that’s carried out, merely click on the ‘Move’ button.

Now, you’ll go back to the primary wp_options web page and edit the ‘house’ possibility.

Enter the home field value

Subsequent, it is important to input the brand new area within the option_value box.

After getting into the price, click on the ‘Move’ button.

Means 3: Flush DNS Cache on Your PC

When you’re nonetheless not able to get to the bottom of the problem of the outdated area redirecting after migration, then you definitely will have to take a look at the DNS settings.

Now and then, it will probably take as much as 12 to 48 hours for the exchange of area identify to take impact. Consequently, web suppliers that don’t have up to date DNS data will redirect customers to the outdated area.

You merely flush the DNS cache in order that it will get the most recent data and the brand new site URL. This additionally is helping get to the bottom of the DNS server now not responding factor.

For extra main points, please see our information on the way to transparent your DNS cache on Mac, Home windows, and Google Chrome.

Professional Tip: Use search engine marketing Plugin to Carry out Complete Web page Redirect

Whilst you manually carry out redirection to a brand new area, then there may be all the time a possibility of mistakes. Consequently, customers would nonetheless be redirected to the outdated area.

An more straightforward means of putting in place redirection is by means of the usage of an WordPress search engine marketing plugin like All in One search engine marketing (AIOSEO). It gives an impressive redirection supervisor that you’ll use to redirect all of your website to a brand new area with none problems.

Full site redirect in All in One SEO

This device was once constructed by means of our group, and it’s what we use once we’re migrating web pages to a brand new area or merging two websites into one. You’ll be able to be informed extra by means of following our step-by-step information on the way to correctly do a complete website redirect in WordPress.

We are hoping 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 at the maximum commonplace WordPress mistakes and the way to repair them and our skilled selections for the must-have WordPress plugins for industry websites.

When you appreciated this text, then please subscribe to our YouTube Channel for WordPress video tutorials. You’ll be able to additionally to find us on Twitter and Fb.

The publish How one can Repair WordPress Redirecting to Outdated Area After Migration first gave the impression on WPBeginner.

WordPress Maintenance

[ continue ]