#How do I get rid of the default Pages domain altogether when using a custom domain?

1 messages · Page 1 of 1 (latest)

silk ridge
#

I have a cloudflare Pages application running, and as such it is accessible using project-name.pages.dev, but I also have it setup to use a custom domain example.com (the custom domain is managed by cloudflare dns). How do I prevent the project-name.pages.dev domain from being active, there fore only allowing access from example.com?

#

How do I get rid of the default Pages domain altogether when using custom domains?

#

How do I get rid of the default Pages domain altogether when using a custom domain?

bitter walrus
silk ridge
bitter walrus
#

It ensures no content can be loaded from that domain and anyone who for some reason lands at the pages.dev will get taken to the right place instead

#

also helps with SEO, you wont have duplicate content anymore