Edit
I have a productive wordpress site (example.com) and a test wordpress site (test.example.com).
For the two sites, I've a productive and a test DB.
Everytime when I'll access the settings for the test site (test.example.com/wp-admin), I'll be redirected to the productive site (the URL looks then like this: http://example.com/wp-login.php?redirect_to=http%3A%2F%2Ftest.example.com%2Fwp-admin%2F&reauth=1
).
I already changed the DB of the test site in the wp-config.php
file, but nothing changed.
How can I change the test site to the test DB and making it independent from the productive one?
wp-config.php
file to the test DB. But also now, when I'll access to thewp-admin
area, it will redirect me to the main site. Here's the URL:http://example.com/wp-login.php?redirect_to=http%3A%2F%2Ftest.example.com%2Fwp-admin%2F&reauth=1