• Hi, Pleskians! We are running a UX testing of our upcoming product intended for server management and monitoring.
    We would like to invite you to have a call with us and have some fun checking our prototype. The agenda is pretty simple - we bring new design and some scenarios that you need to walk through and succeed. We will be watching and taking insights for further development of the design.
    If you would like to participate, please use this link to book a meeting. We will sent the link to the clickable prototype at the meeting.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • The ImunifyAV extension is now deprecated and no longer available for installation.
    Existing ImunifyAV installations will continue operating for three months, and after that will automatically be replaced with the new Imunify extension. We recommend that you manually replace any existing ImunifyAV installations with Imunify at your earliest convenience.

Resolved how to configure my subdomains so that they do not use www?

Danny Fransen

New Pleskian
Hello,

i am new to the forum and plesk and need some help on how to configure my subdomains so that they do not use www. The issue is i have a wild card certificate, which does not support www.<subdomain>.<domain>.com and whenever i go to <subdomain>.<domain>.com it is automatically adding the www. So what i would like to have is that my primary domain can use www. but not my subdomains.

There is no possibility to set the "Preferred domain" on sub domain level and changing the primary domain to "<domain>.com" results in too many redirects when i try to access my site, but "<domain>.com" without www is not what i want anyway.

Any help will be really appreciated
 
You really ought to find out what is causing the redirect from <subdomain>.<domain>.com to www.<subdomain>.<domain>.com. This is not standard Plesk behavior and is likely configured trough your website.

Unless you've added your <subdomain>.<domain>.com as an actual domain in Plesk in stead of a sub domain.
 
Go to "Hosting Settings" of your main domain. Set Prefered domain to: none. That way Plesks doesn't do any redirects. Not for your main domain, nor for the subdomain.
If you go to www.maindomain.com , (as far as Plesk is concerned) you will get that. And if you go to maindomain.com you will get that as well.

Should you still have an active redirect - either www to non-www, or the other way round - see if there is an .htaccess based redirect for example. Or if it's a site based on a CMS if there is a plugin that's doing that.

Once you have no redirects at all working anymore, start with how you like it. Don't do it in Plesk as it can't do what you want. Use .htaccess (or nginx commands) to have your main domain redirect to www.maindomain,com , and leave the subdomain alone.

That should do it.
 
You really ought to find out what is causing the redirect from <subdomain>.<domain>.com to www.<subdomain>.<domain>.com. This is not standard Plesk behavior and is likely configured trough your website.

Unless you've added your <subdomain>.<domain>.com as an actual domain in Plesk in stead of a sub domain.
Thank you for pointing me in the right direction, issue is resolved now!
 
Go to "Hosting Settings" of your main domain. Set Prefered domain to: none. That way Plesks doesn't do any redirects. Not for your main domain, nor for the subdomain.
If you go to www.maindomain.com , (as far as Plesk is concerned) you will get that. And if you go to maindomain.com you will get that as well.

Should you still have an active redirect - either www to non-www, or the other way round - see if there is an .htaccess based redirect for example. Or if it's a site based on a CMS if there is a plugin that's doing that.

Once you have no redirects at all working anymore, start with how you like it. Don't do it in Plesk as it can't do what you want. Use .htaccess (or nginx commands) to have your main domain redirect to www.maindomain,com , and leave the subdomain alone.

That should do it.
Thank you for the step by step approach, was really helpful. There was a redirect in the .htaccess file that i removed.
 
Back
Top