Some tasks to do after a migration from live:

  • Run Better Search Replace for:
    • www.biopac.com -> dev.biopac.com (or whatever dev URL currently is)
    • @biopac.com -> @dev.biopac.com
  • Update recipients in CF7 forms to info@dev.biopac.com
  • Update Woo email recipients
  • Obfuscate user emails:
    UPDATE wp_users SET user_email = replace(user_email, SUBSTRING_INDEX(user_email, '@', -1), CONCAT('biopac', id, '.com')) WHERE user_email NOT LIKE '%@ndic.com';
  • Change distributor/sales emails:
    UPDATE wp_postmeta M SET M.meta_value = 'info@dev.biopac.com'
    WHERE M.meta_key LIKE '%email%'
    AND M.meta_value LIKE '%@%'
    AND M.post_id IN (SELECT ID FROM wp_posts WHERE post_type IN ('sales', 'distributor'))
  • Delete Rocket cache
  • Delete menu cache at /home/biopac/public_html/wp-content/cache/uber-menu.html
  • Delete part number list cache at /home/biopac/public_html/wp-content/cache/part-number-list-deflated.html and/or part-number-list.html
  • Disable robots (Settings > Reading > Search Engine Visibility; Discourage search engines from indexing this site
  • Add the following to the top of .htaccess to redirect all pages to HTTPS:
    RewriteEngine On
    RewriteBase /
    RewriteCond %{SERVER_PORT} 80 
    RewriteRule ^(.*)$ https://dev.biopac.com/$1 [R,L]