Cloudflare not forwarding all http requests to https

EDIT: I’m leaving this post up in the unlikely case it might help someone else who makes the same dumb mistake I made. As it turns out, the problem described below is the result of having my base URL configured in a local DNS config file (/etc/hosts) to go directly to the server, thus circumventing Cloudflare and confusing my analysis of issues. To be clear, I screwed up – Cloudflare is working perfectly.

–Original post–
I’m using the free Flexible SSL setting, and “Always Use HTTPS” is turned on. Despite this, only requests using the “www” alias are being forwarded from http to the https scheme. Requests using no www alias are not being forwarded.

That is to say, requests to are being forwarded to But requests to (without “www”) are NOT being forwarded, and simply serve as requested, without SSL encryption.

This is only happening with one site. Other sites I’m managing through Cloudflare don’t have this problem – with those sites, all requests to http are forwarding to https.

Can anyone offer any advice or insight?


Hi @tech14,

Would the DNS record for your root domain happen to be :grey: while the www subdomain is :orange:? Also


Thanks for your response. As it turns out, this was a stupid mistake on my part – I’d changed my own local DNS for development purposes, and consequently requests without the ‘www’ alias were being directed around Cloudflare and directly to the server, which of course removed Cloudflare’s involvement in SSL settings.

Thanks again. I’ll see myself out.

No problem, glad you found the cause of the issue :slight_smile:

This topic was automatically closed after 30 days. New replies are no longer allowed.