• Archives
  • Cryptocurrency
  • Earnings
  • Enterprise
  • About TechBooky
  • Submit Article
  • Advertise Here
  • Contact Us
TechBooky
  • African
  • AI
  • Metaverse
  • Gadgets
Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Search in posts
Search in pages
  • African
  • AI
  • Metaverse
  • Gadgets
Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Search in posts
Search in pages
TechBooky
Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Search in posts
Search in pages
Home Open source

How to Safely Migrate a WordPress Site to a New Server (Step-by-Step Guide)

Paul Balo by Paul Balo
March 25, 2025
in Open source, Tips
Share on FacebookShare on Twitter

7. Fixing Common Post-Migration Issues (Redirect Loops, Login Problems, Missing Data)

After completing the migration steps above, try loading the site on the new server (either via the actual domain if you’ve switched DNS, or via a temporary URL or hosts file trick). It’s common to encounter a few issues at first. Don’t panic – we’ll troubleshoot some frequent post-migration problems:

  • Login Redirect Loop / Cannot Access WP-Admin: You attempt to log in at /wp-admin on the new site, but keep getting redirected back to the login page without any error, or sent to the old site’s login. This could be due to cookies from the old site or a misconfiguration. First, clear your browser cache and cookies for the site – outdated authentication cookies can cause a loop​. If that doesn’t help, ensure the siteurl/home values are correct (as covered above). A mismatch (e.g., WordPress thinks it’s at oldsite.com but you’re visiting newsite.com) will cause an infinite redirect back and forth​. Another cause might be a .htaccess or plugin force redirect (see below). If you still can’t log in, you can try temporarily disabling plugins by renaming the wp-content/plugins folder to plugins.old (via FTP) – a faulty plugin could be interfering with login. Also, double-check the $table_prefix as mentioned; if WordPress can’t find the users table due to a prefix issue, it might behave as if no user is logged in (redirecting to login).

  • “Error: Too Many Redirects” or Redirect Loop on Front-end: If visiting the site yields a “too many redirects” error or it continually bounces between URLs, there might be an HTTP/HTTPS mix-up or a domain confusion. For example, if the new site is on HTTPS but the database URLs were set to HTTP, you could get a redirect loop between the two. Ensure the site URL uses the correct protocol (if the new host has SSL, use https in siteurl). Also check for any hard-coded redirects: in .htaccess or in your theme’s functions, or a plugin like Really Simple SSL or security plugins that enforce SSL or a specific domain. A quick troubleshooting step is to temporarily rename the .htaccess file (to .htaccess.bak) and see if the site loads (WordPress will regenerate a basic one for pretty links when you save Permalinks). If it loads after removing .htaccess, then something in that file (like a redirect rule) was the culprit – you may need to tweak those rules for the new environment​.

  • Permalinks Broken (404s on posts/pages): If your pages are showing but all post links give 404 errors, the permalink structure might need refreshing. This can happen if the .htaccess rules didn’t transfer or on certain server configurations. Go to Settings -> Permalinks in WP Admin and simply click Save Changes (you don’t have to alter anything)​. This forces WordPress to regenerate the rewrite rules (inserting them into .htaccess on Apache or into the web server config on Nginx via the Plesk integration). If you can’t access WP Admin, you might need to manually ensure the .htaccess contains the default WordPress rewrite rules for your permalink structure.

  • Missing Images or Broken Links: If some images are not appearing, first check their URLs (inspect the image element in browser dev tools). If they still point to the old domain, then the search-replace might have missed something (or you skipped it because the domain was same). Running the Better Search Replace plugin to fix those URLs should solve it. If the URLs are correct but images are 404, verify that the image files indeed exist in wp-content/uploads on the new server. Perhaps some files didn’t get uploaded or permissions are off. You can compare file counts or specific media library items between old and new. Also, check file permissions: on Linux servers, typically directories should be 755 and files 644​. If file permissions or ownership are wrong, the webserver might not serve the files, causing 403/404 errors. Adjust via FTP or control panel if needed.

  • White Screen or PHP Errors: If parts of the site show a blank white screen (the “White Screen of Death”), or error messages like “Fatal error”, something may have gone wrong with a plugin or theme on the new environment. This can happen if the PHP version is different and a plugin is incompatible, or if a module like PHP GD isn’t installed (for an image-related plugin), etc. Check the PHP error logs or enable WP_DEBUG (see next section) to get details of the error. A common fatal error after migration is related to a PHP memory limit exhaustion, which we’ll discuss below.

  • Database Connection Error: If you see the WordPress “Error establishing a database connection” message on the new site, double-check the wp-config.php settings. It means WordPress cannot connect to the MySQL database. Possible causes: the DB name, user, or password is wrong (typo or forgotten update), or the DB host is incorrect (not localhost on that host), or the DB user doesn’t have access to that DB. Correct those values and ensure the MySQL user has privileges on the database. Also verify MySQL is running on the server.

  • WordPress Asking to Reinstall/Install.php redirect: If you are unexpectedly getting the WordPress install screen on the new site, it means WordPress thinks no tables exist with the required data. As mentioned, this is often a table prefix issue or the database import failed. Ensure the tables are present and the wp-config.php prefix matches. One user reported that having an uppercase letter in the table prefix caused issues when migrating to a case-sensitive system​. Renaming tables or adjusting prefix resolved it​. In summary, if you see an install prompt, do not proceed with installation – instead, re-check your migration steps because the data is likely already there, just not recognized by WP.

Many of these issues can be resolved by retracing steps (fixing a config value or running the search-replace). If you run into an issue not covered above, the next step is to turn on debugging to get more insight.

Related Posts:

  • WordPress theme switch
    A Comprehensive Guide to Resolving File Permissions…
  • wp-speculative-loading-plugin-page-speed-e1712935040275
    WordPress Launches Speculative Loading Plugin To…
  • blog5f352fc3b2393_wp
    Hackers Exploit Popular WordPress Backup Tool Used…
  • https___dev-to-uploads.s3.amazonaws.com_uploads_articles_kqmbj9rjwqfghln5r5jv
    How to Convert SQL Server to Postgres
  • images (2)
    The Untold Story of WordPress and WP Engine's Clash
  • WordPress_blue_logo.svg
    WordPress Launches Revolutionary 100-Year Domain…
  • assets_task_01jrfxkvwqeexbx349fmgw9baz_img_0
    Schema Markup in WordPress: A Step-by-Step Guide to…
  • How-to-connect-to-EC2-instance-via-SSH-Linux-1
    Recovering SSH Access on AWS - A Step-by-Step Guide

Discover more from TechBooky

Subscribe to get the latest posts sent to your email.

Page 7 of 11
Prev1...678...11Next
Tags: tipswordpresswordpress migration
Paul Balo

Paul Balo

Paul Balo is the founder of TechBooky and a highly skilled wireless communications professional with a strong background in cloud computing, offering extensive experience in designing, implementing, and managing wireless communication systems.

BROWSE BY CATEGORIES

Receive top tech news directly in your inbox

subscription from
Loading

Freshly Squeezed

  • Facebook Groups Can Now Go Public Without Exposing Member Posts November 3, 2025
  • Chrome Adds Autofill for Passports, Licenses, and Vehicle Registrations November 3, 2025
  • OpenAI and Amazon Sign $38 Billion AI Infrastructure Deal November 3, 2025
  • Bluesky Hits 40 Million Users, Tests Dislike Feature November 1, 2025
  • Windows 11 Preview Adds Shared Audio and Taskbar Copilot November 1, 2025
  • Perplexity and Getty Images Sign Licensing Deal November 1, 2025

Browse Archives

November 2025
MTWTFSS
 12
3456789
10111213141516
17181920212223
24252627282930
« Oct    

Quick Links

  • About TechBooky
  • Advertise Here
  • Contact us
  • Submit Article
  • Privacy Policy
Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Search in posts
Search in pages
  • African
  • Artificial Intelligence
  • Gadgets
  • Metaverse
  • Tips
  • About TechBooky
  • Advertise Here
  • Submit Article
  • Contact us

© 2025 Designed By TechBooky Elite

Discover more from TechBooky

Subscribe now to keep reading and get access to the full archive.

Continue reading

We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.