Redirecting to old domain after migration website

First of all, make sure you’re domain has correct nameserver setup and you’re uploading files to correct place.
When you are changing URL from database directly, here’s a checklist.

  1. The URL must be changed only from wp_options table and update only
    siteurl & home (basically first 2) rows.
  2. Make sure you’re setting http/https correctly. set https only if you
    have SSL enabled in the new domain.
  3. Use a plugin like Better Search & Replace to replace domain and update permalinks and other urls.

If it’s still pointing to old URL,

  1. Check .htaccess file if there is old domain. If so, replace that.
    Also be careful about http/https.
  2. Disable any possible plugin that can redirect home page. Just rename
    the plugin’s folder to disable that.
  3. If still doesn’t work, try to disable the theme same way.
  4. As last resort replace all core files with fresh downloaded zip
    file then check wp-config.php file to set correct credentials.