www to non-www

Post Reply
srv
Posts: 8
Joined: Thu Dec 03, 2020 2:56 pm

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
User avatar
myVesta
Site Admin
Posts: 963
Joined: Fri Jun 19, 2020 9:59 am
Has thanked: 10 times
Been thanked: 6 times

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.
srv
Posts: 8
Joined: Thu Dec 03, 2020 2:56 pm

PM sent
User avatar
myVesta
Site Admin
Posts: 963
Joined: Fri Jun 19, 2020 9:59 am
Has thanked: 10 times
Been thanked: 6 times

Your Alias field does not contain

Code: Select all

www.yourdomain.com
srv
Posts: 8
Joined: Thu Dec 03, 2020 2:56 pm

Thank you !, such a oversight. Now it's working great.
Post Reply