• 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.

Question How to eliminate www in subdomain

JuanCar

Regular Pleskian
Hi
When I create a subdomain (subsite.domain.com) Plesk create also the www.subsite.domain.com).
How to avoid this www. prior to subdomains in server subdomain config?
Now I have a fix with .htaccess, but I woul like to set it in all subdomains from server config.
Thanks
 
Hello,

Do you use the button "add a domain" or "add a subdomain" ?
Because you have to add the root domain first, to be able to add related subdomains. In this case Plesk will not add the www alternative
 
VirtuBox, this is not what I see in Plesk subdomain creation.
I have my domain created (www.mydomain.com) and then I add a new subdomain (subdomain.domain.com) and Plesk creates a subdomain.domain.com.conf where I see the Serveralias www.subdomain.domain.com
Of course I can redirect www.subdomain.domain.com to subdomain.domain.com using .htacces, but it's an innecesary redirect because Plesk should not create a www.subdamian.domain.com ServerAlias, or it could give the option to create it.
Thanks
 
Hello,

okay, I was thinking about www record in DNS template, not to Apache configuration.
But do you have a DNS record for www.subomdain.domain.tld pointed to your server IP ? Because without a DNS record, ServerAlias will not impact anything.
 
My DNS is configured with *.domain.com so I can add subdomains without add new records to DNS. This is not the problem.
The problem appears when I create a subdomain and Plesk adds a ServerAlias with WWW like it does when create a domain, it looks like a bug.

Thanks
 
In Tool & Settings / Server Setting you can define in "Preferred domain for websites" whether to use or not to use www as default.
 
Back
Top