Forwarding a domain with subdomain (using www) to that same domain with subdomain (not using wwww)

I’m trying to get https://www.test.example.org/ to forward to https://test.example.org/.

Right now, https://www.test.example.org/ displays this error in the browser:

This site can’t provide a secure connection
www.test.example.org uses an unsupported protocol.
ERR_SSL_VERSION_OR_CIPHER_MISMATCH

I have A records for test and example.org and CNAME records for www and www.test

I have two page rules:
one to always use HTTPS for http://*example.org/*
and one forwarding www.test.example.org/* to https://test.example.org/$1

How can I get https://www.test.example.org/ to forward to https://test.example.org/?

1 Like

Cloudflare’s SSL certificates cover example.com and *.example.com. In your example above www.test.example.com isn’t covered by the *.exampe.com it covers test.example.com but www.test.example.com is a second level subdomain.

You would either need a dedicated certificate for *.test.example.com or use a different hostname covered by the *.example.com cert you already have.

1 Like

Thanks,

So I can’t just redirect the www version?

Also, I see that I can order a Dedicated SSL Certificate for $5/month but about using a different hostname, am I right that that means upgrading to Enterprise so that we can swap in a new certificate hostname with a new SSL certificate that would allow second level domains to be covered under *.example.com?

You can on http. On https, they’re going to see a certificate error because the handshake will fail before we can redirect. You could do this either with the $10 certificate (specifying a custom hostname of *.test.example.com) or by uploading your own on either the business or ENT plan. An ENT plan would include a dedicated certificate with customer host names as well in most instances.

1 Like

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