TechBooky AI Assistant
TechBooky AI Assistant
👋 Welcome to TechBooky AI Assistant

I can help with:
🔎 Tech News
🤖 AI Topics
💻 Gadgets
☁️ Cloud
✍️ Guest Posts
📢 Advertising
🔗 Backlinks
📩 Newsletter
  • AI Search
  • Cryptocurrency
  • Earnings
  • Enterprise
  • About TechBooky
  • Submit Article
  • Advertise With TechBooky
  • 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
Share this story

Send it to someone who should read it.

f Facebook X X in LinkedIn wa WhatsApp tg Telegram @ Email
In Brief
  • 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...
  • 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...
  • First, clear your browser cache and cookies for the site – outdated authentication cookies can cause a loop​.

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.

    Also worth reading
    Schema Markup in WordPress: A Step-by-Step Guide to Rich Result Recovering SSH Access on AWS – A Step-by-Step Guide Too Much Gemini? Here’s How To Dial Back Gemini In Your Google Workspace Apps How One Engineer Built a Local AI News Roundup With Docker & Qwen A Comprehensive Guide to Resolving File Permissions and Theme Issues How to Convert SQL Server to Postgres
  • 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 Reading

More contextual TechBooky stories selected from tags, categories and article context.

  • 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…
  • bluesky-social-app-inc-GettyImages-1252042401_537192_e2lpcg
    Bluesky Adopts Long-Form Content To Rival X Articles
Keep Reading Smarter

Search TechBooky with AI

Use TechBooky's AI Search to explore the context behind this story and related coverage across the site.

Try AI Search
More On This Topic
Open source Tips
Follow TechBooky

Follow TechBooky for more technology stories and newsroom updates.

f Facebook X X in LinkedIn ig Instagram wa WhatsApp

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.

Search TechBooky
Open TechBooky AI Search Try the AI Assistant

BROWSE BY CATEGORIES

Receive top tech news directly in your inbox

subscription from
Loading

Freshly Squeezed

  • Rivian Spinout ALSO Turns E-Bikes Into An Autonomous Delivery Bet August 23, 2026
  • Apple’s Foldable iPhone May Be Real, But The Trade-Offs Are Too August 23, 2026
  • Apple Job Cuts Point To A New Siri And Vision Pro Reset August 22, 2026
  • TikTok’s $400M Privacy Settlement Shows Child Safety Costs Are Rising August 22, 2026
  • OpenAI Cuts GPT-5.6 Sol API Prices As AI Price War Deepens August 22, 2026
  • Apollo Data Breach Shows Wall Street’s Cloud Security Problem August 21, 2026
  • Tesla’s China Recall Turns Hidden Door Handles Into A Safety Issue August 21, 2026
  • Oura Lawsuit Puts AI Sleep Tracking Under Legal Pressure August 21, 2026
  • Ericsson And MTN Move MoMo Onto Cloud Across Four Markets August 21, 2026
  • Kenya’s Digital ID Talks Put Trust Back At The Centre August 21, 2026
  • Starcloud’s $250M Raise Pushes Orbital AI Data Centres Closer August 21, 2026
  • Micron’s $10B Boise Lab Makes Memory A Bigger AI Battleground August 21, 2026

Browse Archives

August 2026
M T W T F S S
 12
3456789
10111213141516
17181920212223
24252627282930
31  
« Jul    

Quick Links

  • About TechBooky
  • Advertise With TechBooky
  • 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
  • AI Search
  • About TechBooky
  • Advertise With TechBooky
  • 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.