Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

I have a node app hosted on heroku and have two domains set up.

www.mydomain.io and mydomain.io

In namecheap I have pointed my cname record to www.mydomain.io and created an alias which points at mydomain.io. Both work in the browser but is there a way to automatically redirect any requests for www.mydomain.io to mydomain.io?

I have checked with Namecheap support who suggested using a redirect, but that would mean any requests for https://www.mydomain.io would fail.

question from:https://stackoverflow.com/questions/65934920/is-there-a-way-to-automatically-route-www-domain-to-non-www-domain-using-nameche

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
1.2k views
Welcome To Ask or Share your Answers For Others

1 Answer

Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...