Is it possible to redirect example.pages.dev
to example.com
using Cloudflare's DNS dashboard or pages?
So basically what I want is if someone visits example.pages.dev
, the person should be redirected to example.com
.
Note: example.com
is pointing to example.pages.dev
via CNAME
entry inside Cloudflare's DNS dashboard already. Please also note that example.pages.dev
is generated by Cloudflare's pages and is not in our control.
Please also clarify if Google will index the pages as duplicate? Because they'll be accessible from the URL generated by Cloudflare Pages on sub-domain and they'll also be available on main domain.
Will Google indexing these two pages and detect them as duplicates?
example.com/some-page
example.pages.dev/some-page
.dev
TLD, as all Google TLDs, is "special" in the sense that it is included in the HSTS preloading list, which means browsers will only attempt HTTPS connection to it, and never HTTP, which in turn also means you need to have a proper certificate in place, and that happens BEFORE any kind of HTTP level redirections.