• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • 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.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

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