- Plesk Onyx for Linux
When a WordPress instance is cloned to a subdomain, it is created with a redirect to URL with www. prefix and is not accessible.
Preferred domain for website is set to 'www' in Tools&Settings > Server Settings.
The following error is received when trying to access a website:
This page isn’t working
www.subdomain.example.com redirected you too many times.
This is Plesk bug with ID #PPPM-6139 and will be fixed in future product updates.
Create a backup of PSA database:
# MYSQL_PWD=`cat /etc/psa/.psa.shadow` mysqldump -u admin psa > psa`date +%F_%H.%M`.sql
Open the database:
# plesk db
Find ID of the subdomain in psa.domains table and update related entry in psa.dom_param table:
mysql> SELECT id, name FROM domains WHERE name = "<subdomain_name>";
mysql> UPDATE dom_param SET
val='none' WHERE param='seoRedirect' AND dom_id=<domain_id_from_query_above>;
Rebuild webserver configuration files for subdomain as below:
# plesk repair web <subdomain_name>