• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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