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 Femi Balo by Paul Femi 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
    Automattic Interim CFO Exits After Boardroom Turmoil Schema Markup in WordPress: A Step-by-Step Guide to Rich Result Matt Mullenweg Says He Is Back In Control At Automattic 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
  • 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
  • php1
    PHP Releases Emergency Fixes for Two Critical RCE Flaws
  • images (2)
    The Untold Story of WordPress and WP Engine's Clash
  • gettyimages-2181259946
    Matt Mullenweg Says He Is Back In Control At Automattic
  • assets_task_01jrfxkvwqeexbx349fmgw9baz_img_0
    Schema Markup in WordPress: A Step-by-Step Guide to…
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 Femi Balo

Paul Femi Balo

Paul Femi Balo is the founder and publisher of TechBooky. He covers artificial intelligence, African technology, digital infrastructure, enterprise technology and the global digital economy.

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

  • Block Unveils Dessa Voice AI That Can Run on a Laptop October 25, 2026
  • Moonshot Launches Kimi K3.1 Pro With Million-Token Context October 25, 2026
  • UK Study Finds Mythos 5 Pursued Real-World Attack in AI Test October 25, 2026
  • As the US and China Build Rival AI Blocs, Where Does Africa Stand? October 25, 2026
  • Apple Blocks Compromised Web Certificates on iPhone and Mac October 24, 2026
  • Arc Browser Will Stop Working on 22 December as Dia Takes Over October 24, 2026
  • Google Details Offline AI TB Screening at South African Gold Mine October 24, 2026
  • Meta Takes Muse AI Agent to Japan in First Expansion Beyond North America October 24, 2026
  • Cassava Adds Nvidia Nemotron to Its Locally Hosted African AI Service October 24, 2026
  • Apple Limits iPhone Duo Orders to Two Per Customer as Launch Begins October 23, 2026
  • Canva Builds Its Own Image Model With Craft Launch October 23, 2026
  • OpenAI Decisions API Targets Faster, Cheaper Agent Workflows October 23, 2026

Browse Archives

October 2026
M T W T F S S
 1234
567891011
12131415161718
19202122232425
262728293031  
« Sep    

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.