I've just moved a WordPress website from my local machine to the server. All the normal steps were done, such as updating the SQL database and setting it all up. The only problem is the homepage is 301 redirecting to my local URL even though it has the correct URL to go to. The rest of the website is fine including the admin area. So far I've done the following:
- Checked the SQL database to look for any localhost URL's
- Defined the wp_home and wp_siteurl in the wp-config file
- Also defined it in the functions file
- Disabled caching
- Flushed the permalinks
- Disabled plugins
- Checked for hardcoded URL's in the PHP
- Deleted the .htaccess file and created a brand new one
Any further ideas please?