- Plesk Onyx for Linux
Note: This article has the reference to the issue with the fix available:
"Browsing a domain alias resulted in an endless redirect loop if the alias domain name was similar to the name of the parent domain and the “Enable ‘Redirect with the HTTP 301 code” option was disabled in the alies settings."
- Plesk Onyx Update 9 06 December 2016 (Linux)
Website is not redirecting properly showing the error:
The page isn't redirecting properly
Primary domain and domain alias have similar names with special characters and domain alias contain the character "." in its name. Example:
Primary domain name: domain-example.com
Alias name: domain.example.com
Product bug with ID PPPM-5290 .
Download and unpack attached fixes:
# wget -P /root/tmp https://support.plesk.com/hc/article_attachments/115004516145/seoSafeRedirects.zip
# wget -P /root/tmp https://support.plesk.com/hc/article_attachments/115004544169/nginxSeoSafeRedirects.zip
# unzip /root/tmp/seoSafeRedirects.zip -d /root/tmp
# unzip /root/tmp/nginxSeoSafeRedirects.zip -d /root/tmp
Put these files to the directory with virtual hosting custom templates
# mv /root/tmp/seoSafeRedirects.php /usr/local/psa/admin/conf/templates/custom/domain/service/
# mv /root/tmp/nginxSeoSafeRedirects.php /usr/local/psa/admin/conf/templates/custom/domain/service/
If directory does not exist, create it using the command:
# mkdir -p /usr/local/psa/admin/conf/templates/custom/domain/service/
# plesk sbin httpdmng --reconfigure-all
In case of big number of hosted domains, execution of
can cause significant downtime of the websites. Consider to perform this command during maintenance time frame, when the server load is low.