I deployed my app (digitalocean) , and have 3 different link to this like
1. (XXX.XXX.XX.XX) - IP
2. WWW.myapp.com
3. myapp.com
So, I try to find solution which can redirect my 1p. and 2p. to 3p. WWW -> NON WWW , IP -> NON WWW , anybody know !!!
I deployed my app (digitalocean) , and have 3 different link to this like
1. (XXX.XXX.XX.XX) - IP
2. WWW.myapp.com
3. myapp.com
So, I try to find solution which can redirect my 1p. and 2p. to 3p. WWW -> NON WWW , IP -> NON WWW , anybody know !!!
In this scenario I would use nginx to sit infront of meteor and do this for you.
there’s a good amount of support for meteor + nginx on digital ocean
check out this package - https://atmospherejs.com/wizonesolutions/canonical
i use it on several apps to do this
just set your ROOT_URL to myapp.com and it will redirect visitors from www.myapp.com to myapp.com
Yesss ! Thx! It’s help
You could just add a CNAME record for www (or *) pointing to your non-www domain…easier than setting up nginx if you don’t actually need any subdomains…