- Plesk Onyx for Linux
A WordPress website example.com was cloned into the several subdomains. After that, the each of the subdomains started to redirect to the main domain.
All WordPress instances in Subscriptions > example.com > WordPress have the same URL.
wp-config.phpis the same in the main domain and in all subdomains:
# diff /var/www/vhosts/example.com/httpdocs/wp-config.php /var/www/vhosts/example.com/staging1.example.com/wp-config.php
# diff /var/www/vhosts/example.com/httpdocs/wp-config.php /var/www/vhosts/example.com/staging2.example.com/wp-config.php
The function Website Copying in Domains > example.com was used instead of the WordPress Toolkit cloning feature in Subscriptions > example.com > WordPress > Clone next to the name of the source WordPress installation.