Article ID: 121097, created on Apr 15, 2014, last review on Jun 19, 2016

  • Applies to:
  • Plesk Automation 11.5
  • Plesk 12.0 for Linux
  • Plesk 11.5 for Windows


After upgrade to Plesk 11.5, domains are redirecting to the URL '', even if addressed without 'www' in browser.


This is caused by the new Preferred Domain feature, which is set to 'www.' by default for all installations.


In order to switch off the feature, please follow either of the following instructions depending from your OS:

For Windows

  1. Run following command to retrieve list of domains with enabled SEO Redirect (it will require Plesk Panel admin password):

    "%plesk_dir%"\mysql\bin\mysql.exe -uadmin -p -P8306 psa -Ne"select from dom_param dp,domains d where dp.param='seoRedirect' and and dp.val in ('www','non-www') order by" > C:\seo_dom_list.txt
  2. Create a C:\seo_update.bat file using Notepad and add following lines there:

    @echo off
    for /f %%i in (c:\seo_dom_list.txt) do ( echo %%i
    "%plesk_cli%\subscription.exe" -u %%i -seo-redirect none)
  3. Launch the script file.

    SUCCESS: Update of domain 'sub1.tld' completed.
    SUCCESS: Update of domain 'sub2.tld' completed.

For Linux

  1. Run following command by root or a user with root privileges:

    MYSQL_PWD=`cat /etc/psa/.psa.shadow` mysql -u admin -Dpsa -Ne"select from domains d, dom_param dp where and dp.param='seoRedirect' and dp.val in ('www','non-www');" |while read i;do /usr/local/psa/bin/subscription -u $i -seo-redirect none;done
    SUCCESS: Update of domain 'sub1.tld' completed.
    SUCCESS: Update of domain 'sub2.tld' completed.

Related articles

In order to disable the Preferred Domain for all newly created domains, please follow this article:

Search Words

allow cross domain

SEO-Safe Redirects

prefered domain

preferred domain

a914db3fdc7a53ddcfd1b2db8f5a1b9c 56797cefb1efc9130f7c48a7d1db0f0c 46a8e394d6fa13134808921036a34da8 85a92ca67f2200d36506862eaa6ed6b8 bd7fc88cf1b01f097749ae6f87272128 29d1e90fd304f01e6420fbe60f66f838 2a5151f57629129e26ff206d171fbb5f e335d9adf7edffca6a8af8039031a4c7 33a70544d00d562bbc5b17762c4ed2b3 caea8340e2d186a540518d08602aa065 e0aff7830fa22f92062ee4db78133079

Email subscription for changes to this article
Save as PDF