Can't change urls after importing site

What issue or error are you experiencing?

I’m getting 404 errors when I navigate to any page other than home.

I’ve done a full backup of my live wordpress site using WP Migrate Lite, then dragged and dropped the zip file into Local. I managed to get the app up and running but none of the changes I’m making to database.sql seem to be reflected in the local app. I’ve done a search and replace within this file and changed the urls from the original live site url to my local app url but if I click on any of my homepage links I get a 404 page not found error. My wp-login page works however.

I’m not sure where else to try to update the urls, I see all the contents of these pages in my database.sql file and I’ve also made changes to local.sql but I assume this is a file generated when running the app, so maybe there’s no point in modifying this one.

Update: I’ve also added this to my wp-config.php

define( ‘WP_HOME’, ‘’)
define( ‘WP_SITEURL’, ‘’)

Any help is appreciated!


What steps can be taken to replicate the issue? Feel free to include screenshots, videos, etc

System Details

  • Local Version:

  • Operating System (OS) and OS version:

Local Logs

Attach your Local Logs here (Help Doc - Retrieving Local’s Log)

Security Reminder
Local does a pretty good job of scrubbing private info from the logs and the errors it produces, however there’s always the possibility that something private can come through. Because these are public forums, always review the screenshots you are sharing to make sure there isn’t private info like passwords being displayed.

Hi @DaniBZ

Here are some other troubleshooting steps you might try:

1 Like