php – Updates applied to staging WordPress site affecting production even with different databases

Question

I am experiencing strange database-related behaviours on my server that hosts a few versions of the same website.

The problem relates to making content and theme updates to one of the subdomain sites and somehow they are appearing on the main domain’s WordPress.

The main website is domain.ca and the other two can be found at staging.domain.ca and beta.domain.ca.

Each site has its own database with a shared wordpressuser for managing them. Each database is set to use the default wp_ prefix. The database names are unique and should not conflict with each other.

I have also tested with a completely unique user, but the same issues occur.

I have replaced the Authentication Unique Keys and Salts on all three sites, so they are unique to each one.

Each site has its own defined URLs in their respective wp-config.php files.

define( 'WP_HOME', 'https://domain.ca' );
define( 'WP_SITEURL', 'https://domain.ca' );

define( 'WP_HOME', 'https://staging.domains.ca' );
define( 'WP_SITEURL', 'https://staging.domain.ca' );

define( 'WP_HOME', 'https://beta.domains.ca' );
define( 'WP_SITEURL', 'https://beta.domain.ca' );

I have used similar setups on other WordPress-based websites with no issues.

Can anyone shed some insight on why this could be occurring?

Cheers,

0
Mike Hermary 3 months 2023-12-04T18:20:13-05:00 0 Answers 0 views 0

Leave an answer

Browse
Browse