If you want everything in your domain (and subdomains) to be served as SSL, you don’t need a special rule. Go to Cloudflare’s SSL/TLS app and turn on “Always Use HTTPS”
As for Page Rules in general, keep in mind they’re executed in order. Once it finds a matching page rule, it executes, then stops and doesn’t hit the other page rules…unless the executed page rule is a redirect that will generate a new request.
For those who didn’t read the tutorial link above, the catch is that SmugMug uses Cloudflare, which creates a bizarre Cloudflare-to-Cloudflare loop for those unaware.
If I turn on “Always use https” I get the “Invalid URL” for images served from gallery.mysite.com if the orange cloud is turned on in DNS settings. If the orange cloud is not on, then nothing changes on gallery.mysite.com
Update: cleared cache. This actually seems to be working now!! Thank you so much! I hope it holds.
I spoke to soon. I’m back to “Your connection is not secure” all gallery.mysite.com urls
Are you trying to hotlink to images at your subdomain that points to Zenfolio? From these instructions:
It looks like a weird setup. They want an A record to point to a specific IP address, then a CNAME to point to a specific subdomain. Then your site needs to start with ‘www’ to be able to use this setup.
It could very well be that all you need is an A record for your subdomain to point to their IP address:
And then you’ll need Flexible (maybe even Full/not strict will work if they support SSL) for your subdomain.
I use Zenfolio to host my images that display on [redacted]. I set up the custom domain name via Zenfolio so my images show as [redacted]. The image urls are equivalent to [redacted] etc.
I have set up the zenfolio CNAME record on CF for the sub domain gallery.example.com to “custom.zenfolio.com”. It will not allow me to enter a A name with “A CNAME already exists with that host” coming up.
So everything is working, and has been for several years like this. I never rerouted DNS or HTTP for my subdomains through Cloudflare. I do use Cloudflare for www.mysite.com. I have https via Cloudflare working on several pages that have images self hosted (shared hosting). This is what I am trying to do now with the sub domain so my whole site can be https.
I’ve tried flexible SSL for the subdomain but still the same issue. All gallery.mysite.com images start out redirecting to https with green padlock etc. Then about 15 minutes later I get “invalid URL”.
Right now: I have enabled DNS/HTTP on clouflare (orange cloud). And Cloudflare’s SSL/TLS app to turn on “Always Use HTTPS”
When I do this on Chrome, the page loads as https but the image does not show. On other browser the https shows as not secure.
I’ve tried flexible, full and strict SSL but all seem to come back with the same as above.
Hmmm. The fact that the images show up as https for a short time gives me hope. But, other than that I’m lost …
not sure if this helps but when the SSL does work at the start, the browsers advanced settings it shows me the *Cloudflaressl.com cert.
In another small update, I turned all options off for the sub domain once the images started showing as unsecure. Within minutes they show as secure. Presumably as DNS propagates. Just makes me think there’s one thing I’m missing in the settings somewhere that’s blocking from this working properly.
one more update the https image urls are coming back with “The requested URL “http://%5bNo%20Host%5d/img/s6/v142/p2139561915-2.jpg”, is invalid.”
Did you get this set up DTtheme?
I’m trying to set up my subdomain with zenfolio. I’ve just started Cloudflare on my site again, I remember this is the reason I turned it off last time.