Reputation: 174
I have a problem with configuring Godaddy DNS and Heroku hosting server.
The goal is: when I type www.example.com
or example.com
as URL, it needs to go https://www.example.com
.
Right now when I go www.example.com
or example.com,
it goes http://www.example.com
Configurations are:
On Heroku
heroku domains:add www.example.com
(SSL is working. Cert issued)On GoDaddy
type=CNAME name=www value=www.example.com.herokudns.com
forwardto=https://www.example.com forwardtype=Permanent(301) settings=Forwardonly
subdomain=example.com forwardto=https://www.example.com forwardtype=Permanent(301) settings=Forwardonly
P.S. If I manually go https://www.example.com
the browser shows that it is secured
Edit: Update my nameservers and DNS settings to support this change is checked
Upvotes: 1
Views: 668
Reputation: 413
Under GoDaddy doamin forwarding, make sure to check the box next to "Update my nameservers and DNS settings to support this change", then save.
If that is done. Confirm that your local dns cache has updated. Run these two commands, if the IP addresses returned are different, you may need to clear your cache or make sure that you haven't made manual changes to your host file.
nslookup example.com 8.8.8.8 ping example.com
Upvotes: 1
Reputation: 9
Are you using Apache? If so, the .htaccess
file is the best way to change the default domain.
Upvotes: 0