After Migration From dev, Only my Links to the Homepage Still Redirect to dev

You most likely have invalid URLs in the database, however, it’s also entirely possible to have a hard-coded URL in somewhere in the theme or perhaps a plugin, or even .htaccess.

You could always search your entire database for the URL, and make adjustments manually. However, please note that if you make any adjustments to a URL within serialization, you should de-serialize it, make your adjustment, then re-serialize it again, before making the update in the database.

If you want a more automated approach to search and replace all occurrences of a string (A/K/A – replacing URLs), you should take a look at WP CLI.

To further troubleshoot…

  • Disable all plugins.
  • Make sure all drop-ins are removed for testing purposes.
  • Verify there’s no cache subdirectory in the directory
    ./wp-content/.
  • Verify contents of
    .htaccess
    in the root
    directory of WordPress.
  • Verify contents of wp-config.php file in the root directory of
    WordPress.
  • Clear browser temporary files and caches or just try another browser.