Plesk

How to make website accessible on www or non-www in Plesk

Question

How to configure a redirect to www and vice-versa for a website on Plesk?

Answer

Note: This option may not work for WordPress based websites and any other websites that have a predefined configuration to use www or non-www in their code. Configure such websites through their administration panel or in configs. Make sure that there are no custom rules in Domains > example.com > Apache & Nginx Settings or in .htaccess files on Linux or web.config on Windows.

  1. Log in to Plesk.

  2. Go to Domains > example.com > Hosting Settings.

  3. Set Preferred domain parameter to www.example.com: