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
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.
I do believe I have that âAlways use HTTPSâ in the SSL/TLS section switched to on. Iâll try following that tutorial you provided and give an update if it works for me. Thank you for the quick reply!
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
Now it is saying âWe canât display your DNS information because your nameservers arenât managed by us.â and it is displaying the cloudflare nameservers
The nameservers do now point to Cloudflare, but it may take a little while for everywhere to see the change. If you configure the page rule as in that tutorial I posted earlier, it should work soon.