Custom Site / Redirects to Live URL?

I’m having an issue when pulling a WordPress site from Kinsta into DevKinsta. Instead of behaving like a normal pulled environment, the site shows up as a “Custom Site” and keeps redirecting to the live domain rather than staying on the local *.local URL. The files and database appear to import, but the local site won’t load correctly without redirecting externally. I’ve checked basic settings but it still seems tied to the production domain. Has anyone run into this before or know what settings or search-replace steps I might be missing to keep it fully local?

Its only 1 website. All other site pull and push correctly.

wp-config.php not updating during pull?

Adding the following work

// Force correct URL for local environment
define( ‘WP_HOME’, '‘https://url.loca’l );
define( ‘WP_SITEURL’, ‘https://url.local’ );

1 Like

Hello LeeKIJO :waving_hand:

It’s possible that you have update_option(siteurl) and update_option(home) in the theme files, code, leftover cache folder or another code that would direct to the live site.

I’m glad to hear that define override works :+1: If it’s it’s just one site with this issue, it’s unlikely that something’s wrong with your setup (DevKinsta/Docker) and more likely to be site-specific.

Please write back if you notice any other issues.

Kind regards!