A bit of a headache for me. We have a staging website set up on a subdomain. But for some reason, two things are not going quite right.
There seems to be a relationship between plug-ins. If I deactivate a plug-in on staging, live also goes inactive. Is this because a copy of the other plug-in is from live?
For some reason it keeps redirecting from staging to live. In the header of the redirect, I see that it is initiated by WordPress, indicating that is a plug-in causing it. However, I cannot in any way find which plug-in is causing it. Is there an easy way to find out the specific plug-in causing it?
I am not allowed to post the website here as far as I know, to avoid "advertising," but I can provide the URLs if desired.
Add this inside your wp-config.php to the dev site,
After that use plugins
WP Migrate Lite to replace all urls from db (in this plugin there is a function to find and replace,use it for search through db and replace all url's left befind of live site from DB.
define( 'WP_HOME', 'http://example.com' ); define( 'WP_SITEURL', 'http://example.com' );