Redirect sub-domain

Hello,

I would like to redirect a sub-domain to an external URL when both someone type www.shop.keydstars.com.br or shop.keydstars.com.br.

1 - I manage to figure out when someone type shop.keydstars.com.br it redirects users to the correct website.

My question is, I having issues to make it work when user type www.shop.keydstars.com.br, it does not redirects.It gives error “DNS_PROBE_FINISHED_NXDOMAIN

What should I do?

The CNAME you created is only valid for shop.keydstars.com.br (exact match).

You will need to create another CNAME record for the www.shop.keydstars.com.br address as well, using either the full name, or just www.shop in the Name field.

→ Since your screenshot shows the record to be Proxied (:orange:):

Cloudflare’s Universal SSL covers only one-level wildcard, and will work for like shop.keydstars.com.br, but NOT www.shop.keydstars.com.br, as that one goes one level more deep.

As such, you could be ending up with another obstacle, in your attempts to get www.shop.keydstars.com.br to work perfectly.

It does however look like the platform you use have generated a certificate so that www.shop.keydstars.com.br is also covered with them, but it may require you to set the Proxy status for the www.shop record Unproxied (:grey:) / DNS-only, to work properly.

3 Likes

Hello,

@DarkDeviL thank you so much for the reply, however, I still facing problems. To be honest, I have low knowledge on this field, so if you don’t mind, could you please walk me through step by step?

I added the following entry but still not working.

If I’m looking from my end, it looks like you may have set it to Proxied (:orange:) now? :thinking:

From my end, that hostname does however works fine now, although when trying to access www.shop.keydstars.com.br directly, it is currently redirecting visitors over to https://shop.keydstars.com.br.

That redirect is done in the same way as how you would do e.g. redirect from the naked domain (keydstars.com.br) to the www variant (`www.keydstars.com.br``), or the opposite way around.

The redirect seems to come from the store vendor (e.g. according to the set up, the operator of irrobaecom.com.br), and not directly form neither Cloduflare, nor Cloudfront which is also behind Cloudflare in it’s current state (and which irrobaecom.com.br normally seems to use).

Both shop and www.shop are sending me to the same content from here.

Otherwise, can you elaborate on how you’re still facing problems, and/or how it is still not working?

Any error codes/messages, any screenshots of the issue you can share, or so?

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.