Page 1 of 1

www to non-www

Posted: Sun Dec 06, 2020 1:21 pm
by srv
Hi,
I just installed myvestacp panel, added domains, activated SSL and installed wordpress on it.
All working great so far, when I type: example.com in browser it redirect me to my website with: https://example.com - that's ok,
but when I type: www.example.com I get a site with message: "Nginx is functioning normally" - instead redirecting me to my website.
I added correct www to non-www redirection in htacces but not working.
How to solve it, that the domain is always correctly redirected to the right website.

Web Template: PHP-FPM-73
Proxy Support: yes
SSL Support: Lets Encrypt
Proxy Template: force-https

Re: www to non-www

Posted: Sun Dec 06, 2020 1:46 pm
by myVesta
It's very strange.
Are you sure that www. is pointing to the same IP?

You can send me screenshot of "Edit web" page on private message, so I can check basic stuff.

Re: www to non-www

Posted: Sun Dec 06, 2020 3:34 pm
by srv
PM sent

Re: www to non-www

Posted: Sun Dec 06, 2020 5:57 pm
by myVesta
Your Alias field does not contain

Code: Select all

www.yourdomain.com

Re: www to non-www

Posted: Mon Dec 07, 2020 11:15 am
by srv
Thank you !, such a oversight. Now it's working great.