Update: April 20th 2013, Still no solution found, please help
Looking at my nginx config, the only like that could be the culprit is this:
server {
listen 80;
listen [::]:80 ipv6only=on default_server;
rewrite ^(.*) https://$host$1 permanent;
}
Literally I need 'www' to be redirected to the main domain.
Could this be done in nginx?
I am a bit confused about this matter and Godaddy support is telling me each time something different.
I have forwarded my www domain to the main domain and it doesn't work.
www.domain --> domain.com Fails
However any other subdomain such as test, can be forwarded to the main domain without any trouble.
test.domain --> domain.com Ok
Godaddy claims:
or this you will need to setup a www CNAME that maps to @. On your host, you can setup a coded redirect https://domain.com in an index file or .htacess file.
I don't understand how to achieve this.