Staging Site Redirects To Live Site

If the staging site redirects to the live site when you try to access it, check out the points below.

Deactivate the following plugins while creating a staging site

  • Security plugins like wordfence, iThemes security, etc.
  • Caching plugins like W3 Total, Wp Rocket, etc.
  • Redirect / Login plugins

If this does not resolve the issue check out the wp-config.php of the staging site by using FTP.

If it contains entries which defines the path to the domain change it to the path of your staging site. E.g.

define('WP_SITEURL',  '');
define('WP_HOME',  '');

Change it to:

define('WP_SITEURL',  '');
define('WP_HOME',  '');

If this does not resolve the issue open a support ticket.