Print

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',  'www.domain.com/staging');
define('WP_HOME',  'www.domain.com/staging');

Change it to:

define('WP_SITEURL',  'www.domain.com');
define('WP_HOME',  'www.domain.com');

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