Plesk for Windows
Plesk for Linux
kb: how-to
ABT: Group A
Applicable to:
- Plesk for Linux
- Plesk for Windows
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.
-
Go to Domains > example.com > Hosting Settings.
-
Set Preferred domain parameter to
www.example.com
:
Comments
2 comments
hello, how make forwarding for subdomains?
Setting Preferred domain prevents loopback connections in PHP scripts from working.
The following code on domain.com works as expected only if setting Preferred domain = None, otherwise it returns a cURL error: Failed to connect to domain.it port 80: Connection refused
dd
Please sign in to leave a comment.