Today , for subdomain B I’ve created an alternative wp-config file named wp-config2.php. Is exactly a clone from the original, except that I changed the prefix tables for the one I need ( The prefix tables from the plugin in subdomain A). After that I went into the plugin files and I replaced
if ( ! defined( 'ABSPATH' ) ) {
? ? exit; // Exit if accessed directly!
}
for
require_once(ABSPATH . ‘wp-config2.php’);
$connection = mysqli_connect(DB_HOST, DB_USER, DB_PASSWORD);
mysqli_select_db($connection, DB_NAME);
I replaced it in every php file, but the plugin, keeps reading the database tables from subdomain B instead of the plugin tables from subdomain A.
I don’t know what I’ve missing :S
-
This reply was modified 1 year, 6 months ago by tiracles.