Troubleshooting Common URL and Path Issues After a Duplicator Migration
Content
Migrating a WordPress site with the Duplicator plugin is a powerful process, but sometimes things don't go perfectly. A frequent issue users encounter involves incorrect URLs or file paths after a successful migration. This can manifest as broken links, missing CSS, 404 errors for fonts, or even login problems. This guide will help you understand why these issues happen and how to resolve them.
Why Do URL and Path Problems Occur?
During a migration, Duplicator performs a search-and-replace operation on your database. It replaces all instances of your old site URL and server file paths with the new ones. However, some scenarios can prevent this from working perfectly:
- Serialized Data: Some plugins and themes store URL and path data in a serialized format. The search-and-replace process must account for the character count in this data, or it can break.
- Hardcoded URLs: URLs written directly into post/page content or theme/plugin files may not be updated if they don't match the old site URL exactly.
- Plugin/Theme Conflicts: Certain plugins (like security or caching plugins) can interfere with the migration process or the final result.
- Manual Path Input: During installation, manually entering an incorrect path (e.g., "mysite.com" instead of leaving it blank for the root) can create double paths.
- Server Configuration: The new server might not have mod_rewrite enabled for Apache or correct permissions for Nginx, causing permalink issues that look like missing pages or CSS.
Common Symptoms and Their Solutions
1. Text Links or Images Still Point to the Old (localhost) URL
Problem: After migrating from a local server to a live host, some links in your page content still contain "localhost."
Solution: This is often caused by serialized data. You can use a standalone database search-and-replace tool (always backup first!) to carefully perform the replacement. Alternatively, some users have success with plugins like "Better Search Replace" after the migration is complete.
2. Missing CSS or Styles on the Frontend
Problem: Your site loads but looks unstyled, as if the CSS is missing. The backend (wp-admin) may work fine.
Solution:
- Check Permalinks: Go to Settings > Permalinks and simply click "Save Changes" to flush the rewrite rules. This often fixes the issue.
- Clear Caching: Deactivate any caching or optimization plugins (e.g., Smush, SG Optimizer) and clear all server and browser caches.
- Check Paths: If the browser's console shows 404 errors for resources with a double path (e.g.,
mydomain.com/mydomain.com/wp-content/...), the site or home URL in the database might be incorrect. Check thewp_optionstable for thesiteurlandhomevalues.
3. Login Page Redirects or White Screen
Problem: You cannot access wp-admin; you get a white screen, a redirect loop, or are sent to the original site.
Solution:
- Rename Plugins Folder: Use FTP or your host's file manager to rename the
/wp-content/pluginsfolder to/wp-content/plugins.old. This deactivates all plugins. Try to log in again. If successful, rename the folder back and reactivate plugins one-by-one to find the culprit. Common conflicts are security plugins (e.g., iThemes Security) or plugins that change the login URL (e.g., WPS Hide Login). - Check .htaccess: Rename your
.htaccessfile to.htaccess.old. Try to log in. If it works, go to Permalinks to generate a new, clean file. - Server Configuration: For local servers like XAMPP or Laragon, ensure Apache's
httpd.conffile hasAllowOverride Allset for your directory.
4. Fonts or Files Returning 404 Errors with Incorrect Paths
Problem: Browser console shows failed requests for fonts or other files with an incorrect, duplicated path.
Solution: This usually happens if the "Path" was manually set incorrectly during installation. The best practice is often to leave this field blank if you are installing in the root of your domain. To fix it, you will need to manually correct the values in the database, typically in the wp_options table or within theme/plugin settings that store absolute paths.
Final Checklist
- Always clear all caching (plugin, server, browser) after a migration.
- Verify the
siteurlandhomevalues inwp_optionsare correct. - Visit Settings > Permalinks and save the settings.
- Temporarily disable security, caching, and login-redirect plugins before migration and reactivate them carefully afterward.
- Ensure your new server has the correct PHP extensions and Apache/Nginx modules (like mod_rewrite) enabled.
By methodically working through these steps, you can resolve most post-migration URL and path issues and get your cloned site running smoothly.
Related Support Threads Support
-
Issue with wp_posts.guid DB columnhttps://wordpress.org/support/topic/issue-with-wp_posts-guid-db-column/
-
step 3 demands new email and creates new adminhttps://wordpress.org/support/topic/step-3-demands-new-email-and-creates-new-admin/
-
Two Resolveable “bugs” – Google Captcha by BestWebSoft & ITheme Securityhttps://wordpress.org/support/topic/two-resolveable-bugs-google-captcha-by-bestwebsoft-itheme-security/
-
Migrated site no CSS on frontendhttps://wordpress.org/support/topic/migrated-site-no-css-on-frontend/
-
wp-admin of old site kept redirecting to new sitehttps://wordpress.org/support/topic/wp-admin-of-old-site-kept-redirecting-to-new-site/
-
After duplciate website to work with, there is a conflicthttps://wordpress.org/support/topic/after-duplciate-website-to-work-with-there-is-a-conflict/
-
WordPress Won’t Start After Duplicator Updatehttps://wordpress.org/support/topic/wordpress-wont-start-after-duplicator-update/
-
Problem running Duplicator to move live WP site to local serverhttps://wordpress.org/support/topic/problem-running-duplicator-to-move-live-wp-site-to-local-server/
-
A reserved file(s) was found in the WordPress root directory.https://wordpress.org/support/topic/a-reserved-files-was-found-in-the-wordpress-root-directory/
-
Cannt access WordPress after duplicatorhttps://wordpress.org/support/topic/cannt-access-wordpress-after-duplicator/
-
ERR_TOO_MANY_REDIRECTShttps://wordpress.org/support/topic/err_too_many_redirects-105/
-
Request for Help with Duplicator Migration Issueshttps://wordpress.org/support/topic/request-for-help-with-duplicator-migration-issues/
-
Not Found The requested URL was not found on this serverhttps://wordpress.org/support/topic/not-found-the-requested-url-was-not-found-on-this-server-8/
-
ERR_TOO_MANY_REDIRECTS After Installinghttps://wordpress.org/support/topic/err_too_many_redirects-after-installing/
-
Problem of automatical Change of permalinks after migrationhttps://wordpress.org/support/topic/problem-of-automatical-change-of-permalinks-after-migration/
-
Unable to Remove Installation Fileshttps://wordpress.org/support/topic/unable-to-remove-installation-files/
-
user.ini causing white pagehttps://wordpress.org/support/topic/user-ini-causing-white-page/
-
WordPress URL blocked when restoring website with Duplicatorhttps://wordpress.org/support/topic/wordpress-url-blocked-when-restoring-website-with-duplicator/
-
Cloned a live WordPress, only the front page of localhost site is workinghttps://wordpress.org/support/topic/cloned-a-live-wordpress-only-the-front-page-of-localhost-site-is-working/
-
Lots of 404s after Migrationhttps://wordpress.org/support/topic/lots-of-404s-after-migration/
-
Duplicator keep the Child MainWP settings, error new sitehttps://wordpress.org/support/topic/duplicator-keep-the-child-mainwp-settings-error-new-site/
-
ERROR: wp-config-local.php is not present!https://wordpress.org/support/topic/error-wp-config-local-php-is-not-present/
-
wp-config.php changes and .htaccess changes warning in Step 4 of 4https://wordpress.org/support/topic/wp-config-php-changes-and-htaccess-changes-warning-in-step-4-of-4/
-
Path incorrect?https://wordpress.org/support/topic/path-incorrect-2/
-
wp-admin white page and wp-login.php doesn’t workhttps://wordpress.org/support/topic/wp-admin-white-page-and-wp-login-php-doesnt-work/
-
Errors afer Migrate to Local Windows serverhttps://wordpress.org/support/topic/errors-afer-migrate-to-local-windows-server/
-
Duplicator using server path and not domain namehttps://wordpress.org/support/topic/duplicator-using-server-path-and-not-domain-name/
-
Duplicator adds letters before permissionshttps://wordpress.org/support/topic/duplicator-adds-letters-before-permissions/
-
Old site redirects to new site after movehttps://wordpress.org/support/topic/old-site-redirects-to-new-site-after-move/
-
After Migrate – 9 php errors wp_setup_nav_menu_item() Unknown locationhttps://wordpress.org/support/topic/after-migrate-9-php-errors-wp_setup_nav_menu_item-unknown-location/
-
nach Umzug mit Duplicator wird nur leere Seite angezeigthttps://wordpress.org/support/topic/nach-umzug-mit-duplicator-wird-nur-leere-seite-angezeigt/
-
ssl login failinghttps://wordpress.org/support/topic/ssl-login-failing/
-
Redirected to Old Site after Completed Installationhttps://wordpress.org/support/topic/redirected-to-old-site-after-completed-installation/
-
Edit Site After Migrationhttps://wordpress.org/support/topic/edit-site-after-migration/
-
Removing the wrong dup-installer directory makes WP dashboard inaccessible.https://wordpress.org/support/topic/removing-the-wrong-dup-installer-directory-makes-wp-dashboard-inaccessible/
-
restore from backup has trouble, like CSS is missinghttps://wordpress.org/support/topic/restore-from-backup-has-trouble-like-css-is-missing/
-
Duplicator does not duplicate permissionshttps://wordpress.org/support/topic/duplicator-does-not-duplicate-permissions/
-
Problem with the WooCommerce pageshttps://wordpress.org/support/topic/problem-with-the-woocommerce-pages/
-
White Screens – 500 errorhttps://wordpress.org/support/topic/white-screens-500-error/
-
Admin Log Inhttps://wordpress.org/support/topic/admin-log-in-4/
-
Start WP install after restore completionhttps://wordpress.org/support/topic/start-wp-install-after-restore-completion/
-
“Duplicator” plugin it deletes the WP fresh installhttps://wordpress.org/support/topic/duplicator-plugin-it-deletes-the-wp-fresh-install/
-
Problems with admin styles/js scriptshttps://wordpress.org/support/topic/problems-with-admin-styles-js-scripts/
-
Redirected to Old Site after Completed Installationhttps://wordpress.org/support/topic/redirected-to-old-site-after-completed-installation-2/
-
What is my admin credentials?https://wordpress.org/support/topic/what-is-my-admin-credentials/
-
Communication With GPRS Printer Stopped Working After Migrationhttps://wordpress.org/support/topic/communication-with-gprs-printer-stopped-working-after-migration/
-
Step 4: 404 Search & Replace Noticeshttps://wordpress.org/support/topic/step-4-404-search-replace-notices/
-
Localhost URLs in text items not updating on web hosthttps://wordpress.org/support/topic/localhost-urls-in-text-items-not-updating-on-web-host/
-
Error updating wp-config-filehttps://wordpress.org/support/topic/error-updating-wp-config-file/
-
Duplicated site url being set to http not httpshttps://wordpress.org/support/topic/duplicated-site-url-being-set-to-http-not-https/
-
Permalinks brokenhttps://wordpress.org/support/topic/permalinks-broken-12/
-
How to retain original permalink after migrationhttps://wordpress.org/support/topic/how-to-retain-original-permalink-after-migration/
-
Admin Privlieges after backup/restorehttps://wordpress.org/support/topic/admin-privlieges-after-backup-restore/
-
Duplicator Plugin doesn’t workhttps://wordpress.org/support/topic/duplicator-plugin-doesnt-work/
-
REST API broken and 404 errors after site migrationhttps://wordpress.org/support/topic/rest-api-broken-and-404-errors-after-site-migration/
-
Duplicated databse, affecting a different websitehttps://wordpress.org/support/topic/duplicated-databse-affecting-a-different-website/
-
Blank Pagehttps://wordpress.org/support/topic/blank-page-317/
-
Redirected to login for original site after installation?https://wordpress.org/support/topic/redirected-to-login-for-original-site-after-installation/
-
Duplicator install complete, yet no files exist in destination directoryhttps://wordpress.org/support/topic/duplicator-install-complete-yet-no-files-exist-in-destination-directory/
-
Remove Installation Files issuehttps://wordpress.org/support/topic/remove-installation-files-issue/
-
Error establishing a database connectionhttps://wordpress.org/support/topic/error-establishing-a-database-connection-871/
-
White page after migrationhttps://wordpress.org/support/topic/white-page-after-migration-2/
-
Duplicator Install Version 3.xx of WP Dashboard borkenhttps://wordpress.org/support/topic/duplicator-install-version-3-xx-of-wp-dashboard-borken/
-
Admin not working after updatehttps://wordpress.org/support/topic/admin-not-working-after-update/
-
Erreur when url login is modifiedhttps://wordpress.org/support/topic/erreur-when-url-login-is-modified/
-
No Access After WP Site Duplicationhttps://wordpress.org/support/topic/no-access-after-wp-site-duplication/
-
Getting a ‘[URL] redirected you too many times.’ after successful installationhttps://wordpress.org/support/topic/getting-a-url-redirected-you-too-many-times-after-successful-installation/
-
Duplicator not transferring wordpress fileshttps://wordpress.org/support/topic/duplicator-not-transferring-wordpress-files/
-
Compatibility with FlyWPhttps://wordpress.org/support/topic/compatibility-with-flywp/
-
Cannot get past NEXT, after create Newhttps://wordpress.org/support/topic/cannot-get-past-next-after-create-new/
-
ADMIN LOGIN button uses wp-login.php??https://wordpress.org/support/topic/admin-login-button-uses-wp-login-php/
-
Archive missing wp-login.phphttps://wordpress.org/support/topic/archive-missing-wp-login-php/
-
Migration Status: Notice – Home Pathhttps://wordpress.org/support/topic/migration-status-notice-home-path/
-
Nach Umzug von Provider taucht eine andere Startseite auf…https://wordpress.org/support/topic/nach-umzug-von-provider-taucht-eine-andere-startseite-auf/
-
wp-config.php transformer:Config value must be a string.https://wordpress.org/support/topic/wp-config-php-transformerconfig-value-must-be-a-string/
-
Bug, define WP_SITEURL added to wp-config.phphttps://wordpress.org/support/topic/bug-define-wp_siteurl-added-to-wp-config-php/
-
redirecting & blank front page after finished migrationhttps://wordpress.org/support/topic/redirecting-blank-front-page-after-finished-migration/
-
Site transferred but can’t access back endhttps://wordpress.org/support/topic/site-transferred-but-cant-access-back-end/
-
wp-config file not being updatedhttps://wordpress.org/support/topic/wp-config-file-not-being-updated/
-
Creating site clone does not work with active plugin WPS Hide Loginhttps://wordpress.org/support/topic/creating-site-clone-does-not-work-with-active-plugin-wps-hide-login/
-
.htaccess issues + wp-config issueshttps://wordpress.org/support/topic/htaccess-issues-wp-config-issues/