# How to set to use only "WWW" instead of "non-www"

**URL:** <https://forum.hestiacp.com/t/how-to-set-to-use-only-www-instead-of-non-www/6674>\
**Category:** Uncategorized\
**Created:** [June 21, 2022, 11:00am UTC](https://forum.hestiacp.com/t/how-to-set-to-use-only-www-instead-of-non-www/6674 "2022-06-21T11:00:16Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![gn00433798](https://forum.hestiacp.com/letter_avatar_proxy/v4/letter/g/3be4f8/32.png) [@gn00433798](https://forum.hestiacp.com/u/gn00433798)\
**Post date:** [June 21, 2022, 11:00am UTC](https://forum.hestiacp.com/t/how-to-set-to-use-only-www-instead-of-non-www/6674/1 "2022-06-21T11:00:17Z")

</div>

Hello,  
How to set to use only “WWW” instead of “non-www”  
No matter how I set it, it will automatically generate a non-www+alias www  
please help me  
Thank you

---

<div class="post-metadata">

**Author:** ![Raphael](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/raphael/32/5217_2.png) [@Raphael](https://forum.hestiacp.com/u/Raphael)\
**Post date:** [June 21, 2022, 11:17am UTC](https://forum.hestiacp.com/t/how-to-set-to-use-only-www-instead-of-non-www/6674/2 "2022-06-21T11:17:14Z")

</div>

Using www.domain.tld only doesnt make realy sense, you can add domain.tld and then set an auto redirect to www.domain.tld.

---

<div class="post-metadata">

**Author:** ![gn00433798](https://forum.hestiacp.com/letter_avatar_proxy/v4/letter/g/3be4f8/32.png) [@gn00433798](https://forum.hestiacp.com/u/gn00433798)\
**Post date:** [June 21, 2022, 11:21am UTC](https://forum.hestiacp.com/t/how-to-set-to-use-only-www-instead-of-non-www/6674/3 "2022-06-21T11:21:21Z")

</div>

Hello,

My non-www is on other services and cannot be used to point to  
If I set up non-www & www, will there be no way to enable SSL  
Can you help me?  
Thank you very much

---

<div class="post-metadata">

**Author:** ![eris](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/eris/32/1241_2.png) [@eris](https://forum.hestiacp.com/u/eris)\
**Post date:** [June 21, 2022, 12:48pm UTC](https://forum.hestiacp.com/t/how-to-set-to-use-only-www-instead-of-non-www/6674/4 "2022-06-21T12:48:40Z")

</div>

> <https://github.com/hestiacp/hestiacp/issues/2632>
>
> \### Describe the bug
> 
> I need to have two separate websites for example.com and… www.example.com.
> 
> Hestia doesn't let me do that, when I create a website with www.example.com to save www. is removed and the website is saved as example.com
> 
> Doing a search in the code I saw that it is the \*\*fomat\_domain\*\* function that removes the www prefix.
> https://github.com/hestiacp/hestiacp/blob/d5ff1d0d40e465ef60bffb54b48ae0b43f408acf/func/main.sh#L1353
> 
> Is there an alternative to be able to create a website with the prefix www (not as an alias)?
> Or could you remove this forcing by making the choice of whether or not to remove the www prefix optional?
> 
> Thanks!
> 
> 
> \### Tell us how to replicate the bug
> 
> 1. Click on Web tab.
> 2. Click on Add Web Domain
> 3. Use \*\*www.example.com\*\* as Domain
> 4. Click Save
> 5. The saved domain domain is \*\*example.com\*\* and not \*\*www.example.com\*\*
> 
> \### Which components are affected by this bug?
> 
> Control Panel Backend, Control Panel Command Line Interface
> 
> \### Hestia Control Panel Version
> 
> 1.5.15
> 
> \### Operating system
> 
> Ubuntu 20.04
> 
> \### Log capture
> 
> \_No response\_

---

<div class="post-metadata">

**Author:** ![gn00433798](https://forum.hestiacp.com/letter_avatar_proxy/v4/letter/g/3be4f8/32.png) [@gn00433798](https://forum.hestiacp.com/u/gn00433798)\
**Post date:** [June 21, 2022, 5:22pm UTC](https://forum.hestiacp.com/t/how-to-set-to-use-only-www-instead-of-non-www/6674/6 "2022-06-21T17:22:26Z")

</div>

Hello,

I used the following code which effectively created the www domain  
But when I generate SSL, I get this error “Error: SSL is not enabled”  
I tested other urls and it is normal, how can I fix it?

Thank you very much

```auto
v-add-web-domain jaap testkees.nl
v-change-web-domain-name jaap testkees.nl www.testkees.nl
# Adds by default testkees.nl as alias for www.testkees.nl
v-delete-web-domain-alias jaap www.testkees.nl testkees.nl
v-add-web-domain jaap testkees.nl

```

---

<div class="post-metadata">

**Author:** ![eris](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/eris/32/1241_2.png) [@eris](https://forum.hestiacp.com/u/eris)\
**Post date:** [June 21, 2022, 5:37pm UTC](https://forum.hestiacp.com/t/how-to-set-to-use-only-www-instead-of-non-www/6674/7 "2022-06-21T17:37:46Z")

</div>

It doesn’t work as it still missing some required changes as we didn’t see it was needed. As it has so little usage and the duplicated domains checks depends on the [domain.com](http://domain.com) being present…

---

<div class="post-metadata">

**Author:** ![gn00433798](https://forum.hestiacp.com/letter_avatar_proxy/v4/letter/g/3be4f8/32.png) [@gn00433798](https://forum.hestiacp.com/u/gn00433798)\
**Post date:** [June 21, 2022, 5:43pm UTC](https://forum.hestiacp.com/t/how-to-set-to-use-only-www-instead-of-non-www/6674/8 "2022-06-21T17:43:25Z")

</div>

I understand

Can you tell me how to restore and delete the www domain?  
I use the general removal method and it will show that this DOMAIN cannot be found  
I removed the folder and the NGINX and APACHE settings, but I still see this DOMAIN in Hestiacp?

Thanks

---

<div class="post-metadata">

**Author:** ![gn00433798](https://forum.hestiacp.com/letter_avatar_proxy/v4/letter/g/3be4f8/32.png) [@gn00433798](https://forum.hestiacp.com/u/gn00433798)\
**Post date:** [June 21, 2022, 5:55pm UTC](https://forum.hestiacp.com/t/how-to-set-to-use-only-www-instead-of-non-www/6674/9 "2022-06-21T17:55:01Z")

</div>

thanks

i found it

---

<div class="post-metadata">

**Author:** ![erador](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/erador/32/4278_2.png) [@erador](https://forum.hestiacp.com/u/erador)\
**Post date:** [October 12, 2026, 1:45pm UTC](https://forum.hestiacp.com/t/how-to-set-to-use-only-www-instead-of-non-www/6674/10 "2026-10-12T13:45:21Z")

</div>

sorry to resurrect such an ancient topic, but is there really no way to add [www.example.co.uk](http://www.example.co.uk) on its own? Another service is using [example.co.uk](http://example.co.uk) and we just want to add a simple redirect from [www.example.co.uk](http://www.example.co.uk) to non-www, but with SSL.

I’d be happy to add just [example.co.uk](http://example.co.uk) and a www alias if there was a way to tell hestia only to generate a cert for the alias.
