I am a first time web developer that recently finished creating my first site and am now trying to get it on the web. I deployed it via heroku as that was the application the tutorial I was following used and then purchased a domain from godaddy for the actual site to live on. I acquired an SSL via heroku and attempted to forward the domain on godaddy but could not get it to work no matter what I tried. I found a stackoverflow post that mentioned using cloudflare so I created an account and am using it for hosting but still have the same problem. What I am trying to do is to simply get: https:// www. example. com
https:// example. com
www. example. com
all to point to the same secure url of https://www.example.com . Currently that is the only one that displays as secure while the rest show as Unsecure. Let me know if there is any information I can provide that would be helpful.
Can you share the actual domain name? if it’s working on https://www.example.com, you should make sure you have enabled ‘Always use HTPS’ in the SSL/TLS section of your Cloudflare dashboard which should deal with the http urls. Then you probably want to redirect the root domain to www with something like this:
All of this will only work if your site s proxied through Cloudflare, which I am assuming it is.
This is so frustrating. I changed the nameservers on godaddy to the ones provided by cloudflare and sometimes it will show as cannot show dns settings since they are provided elsewhere and other times it will show the dns records as before and say it is using the default nameservers. I just tried changing it again but got a server timeout