Search code examples
wordpressdatabase-migration

Site home URL is re-directing to local server URL after remote database import and file upload via FTP


I dropped my remote database in order to import a new one and, at the same time, re-uploaded my WordPress/WooCommerce site via FTP (File Zilla).

The problem is that my live site (www.site.com) is now re-directing to my local URL (www.site.dev.cc) on the homepage only. All other pages, e.g. wp-login and blog work fine. I have tried making the change in settings > general; editing the functions.php file and wp-config file but no luck.

Does anyone have any idea how to fix this? I changed site URL in wp_settings in the remote database to www.site.com but that doesn't seem to have helped.

the top of my database in phpmyadmin

I have re-named items in the database from www.site.dev.cc to www.site.com but it hasn't worked, which makes me wonder if its something in one of the file that was uploaded.

Any ideas welcome!


Solution

  • My site was being cached - it's now been solved