Redirect a www to domain apex NOT WORKING for static site deployed to pages

Deployed a static page with custom domain. I’m unable to redirect www to domain apex. Followed direction from https://developers.cloudflare.com/pages/how-to/www-redirect/ to no avail which didn’t work.

What I’m trying to accomplish:
https://www.ethiopiacybershield.com —redirect to–> https://ethiopiacybershield.com

Your www subdomain does not resolve to anything, looks like something went wrong with step 3 – creating the Originless DNS Record. I would double check you properly created the record, in the right domain.

1 Like

A record added.

1 Like

Works for me now:

curl -vvv https://www.ethiopiacybershield.com/

< HTTP/2 301
< date: Thu, 29 Jun 2023 17:24:18 GMT
< location: https://ethiopiacybershield.com

You might need to wait a bit for DNS Cache to expire on your end.

3 Likes

Thanks @Chaika !

1 Like

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