'https://www.example.org to https://example.org wix bluehost

back story

out domain is on wix.com and hosting on bluehost(it's a wordpress site). we have added A host in wix domain.org with ip. it is working fine.

The ISSUE

we have we want to redirect https://www.example.org to https://example.org

the reason

we want to redirect because when we open https://www.example.org it says our ssl is only for example.org not www.example.org (though www.example.org was working fine with wix hosting)

solutions tried

we have tried adding redirect code to .htaccess but it isn't working tried adding cname to wix ..

we are not sure what to do please do guide us if we are doing it wrong..



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source