I’m using Cloudflare on our production.site https://baby-golightly.com, but I’m having issues adding a subdomain the correct way. I’ve done everything current at the hosting (they say its a Cloudflare issue) and have put in the information as seen here:
But blog.baby.-golightly.com just redirects to the livesite where as www.blog.baby.-golightly.com redirect to the correct page although the force SSL ain’t working. What can be the issue?
Cloudflare does not support such a deep level of hostnames on their universal certificates. If you have to have this configuration you will need to purchase a $10/month dedicated certificate.
As for why blog.domain.com isn’t working, if you set the record for blog to , does it still redirect? It could be triggered by a page rule or by a redirect on your server.
That part is not unclear. The unclear thing is that my problem still exist. That https://blog.baby-golighly.com don’t work. It just redirects to the root domain. If I set it to DNS-only it seems to go to the blog-page (with a warning about SSL) which then redirects to the root domain. And with also a proxy it goes straight to the rootdomain :l
Also, you dont have a valid certificate for that host on your server. Because of that you cannot use “Full strict” as SSL mode on Cloudflare, which makes your site less secure.
Thanks Sandro, I finally figured out the SSL issue which is now solved with a dedicated certificate for custom hosts. However my weird Wordpress redirect still happens. I’ve deleted Wordpress at the subdomain but it STILL redirects with this same message. How come Wordpress can make a 301 redirect when Wordpress doesn’t even exist on the target domain? It must be something on the server-level no?
About the certificate, the naked domain and “www” look good now, however the certificate does not include “blog”, hence still a warning. You might want to get a wildcard certificate issued from Lets Encrypt in this case.
As for your issue, it still is the same server issue as mentioned in my last response. Something redirects all “blog” requests to your naked domain. That could be within Wordpress, but also simply within your server configuration (e.g. .htaccess). Also, “blog” reacts differently on HTTP and HTTPS. You’ll need to have a thorough look at that configuration.
Theres no warning here and the certificate should include both “blog” and “www.blog”. http gives a 307 redirect to the 301 redirect, which of cause still exists. Just weird as I’ve deleted any htaccess file in the subdomain-folder. But I’ll try to investigate a bit more
You might refer to the certificate on Cloudflare, which is a wildcard certificate and includes “blog”. The certificate on your server however does not.
As for the redirects. HTTP returns a 200, but then performs some weird redirections. HTTPS still returns a 301 to your naked domain.
I am afraid I can only repeat what I wrote earlier, you need to check that server configuration.