How to migrate WordPress site but admin redirects to old url?

How to migrate WordPress site but admin redirects to old url?

Sorry we can not be of more help. You need to make a change to your database. In the database table wp_options (or whatever your database prefix is), you need to change two lines. The topic ‘Migrated WordPress site but wp-admin redirects to old url and database’ is closed to new replies.

How can I migrate my website to a new URL?

Change the option_value from the old url to the new url. Similarly there should also be option_id 36, option_name home. Change the option_value also from the old url to the new url. This should do the trick. Also check out http://wp.smashingmagazine.com/2013/04/08/moving-wordpress-website/ for the best method to migrate.

How to redirect to an old URL in PHP?

Type your authentication then in general setting change the URL directory again and access the website. Open PHPMyadmin in your cPanel and then click on the wp_options file and then you will see a bunch of fields that you can change and you will see the old url which you can then change manually to the new url (in two places).

Why is my website redirecting to an old page?

My redirection issue was due to caching. If you do not want to have to clear all your cache and you are using Chrome: Right click anywhere on the page > inpect element > Network tab > tick disable cache. Then in that same Chrome tab try to load your website again.

How to redirect to old domain after migration?

Do a Replace All of all instances of your old domain with your new domain. (i.e. olddomain.com with newdomain.com) Save the updated SQL and import it back into phpMyAdmin. Voila! Change the URL in option database file in phpmyadmin. Means your actual URL link. Then open wp-admin page..with wp-login.php link..

How to change URLs in a WordPress database?

This is a simple plugin to update URLs in a WordPress database. The Better Search Replace plugin allows a user to replace the URL within all or a few selected database tables. The Velvet Blues Update URLs plugin provides options to change the URLs at places like posts and pages, excerpts, etc.

How to mass change old URLs in website database after?

1. Manually update old urls in database- for small websites For a small website, you can choose to manually replace URLs across the Website. Most of the time you have to look out for the content where you have placed a link to home page and other internal pages, and simply edit them.

How to get rid of the old WordPress url?

Search your database with phpmyadmin for all occurrences of the old URL using interconnectit.com WordPress Serialized PHP Search Replace Tool. Reset Dashboard>>Settings>>Permalinks and be sure .htaccess is writable. Check your theme files for hardcoded URLs. If using HTTPS change the value for wordpress-https_ssl_host in the wp_options table.

How to change the URL of my WordPress site?

More information is available in the Moving WordPress documentation. If your WordPress admin pages are still working, you can go to Settings → General, and change the WordPress URL and the Site Address to the correct values.

Do you have to take your old WordPress site down?

The good news is that you don’t have to take down your old site while you’re setting up your new WordPress site, nor do you have to redirect your old site somewhere else. And when you’ve finished creating your new WordPress site, you can simply change a few settings and have the new site working on your domain in a matter of minutes.

How to redirect PHP website to old url?

On Chrome, Navigate to chrome://settings/clearBrowserData and clear image and file cache. I think i need to give my contribution! In case you are using Polylang with a dynamic IP, add define (‘PLL_CACHE_HOME_URL’, false); in your wp-config.php and it will solve all your problems (redirection to the former url)!

How to redirect website to new URL in PHP?

In the database table wp_options (or whatever your database prefix is), you need to change two lines. One should be option_id 1, option_name siteurl. Change the option_value from the old url to the new url. Similarly there should also be option_id 36, option_name home. Change the option_value also from the old url to the new url.

Why does my site get redirected to the old url?

The reason is as soon as you go the the url you get redirected to a new url and then when you refresh you actualy refresh the new url not the old cache, so the fastest fix it is just to clear the cache & history. special note: if you look in the wp_options table the first 2 entries also reference to the perm link fast command to find it bellow

What to do if wp admin points to wrong url?

Use phpMyAdmin or just log directly into the database and look at your wp_options table. Check the following two fields: siteurl and home. Make sure these fields hold the correct domain information if not change them and see what happens. In my case the issue was resolved.