Disable access to `my-site.pages.dev` after adding a custom domain


We recently deployed a static site using Cloudflare Pages and have configured a custom domain, www.my-site.com.

Our goal is to disable access to the default URL my-site.pages.dev to prevent users from inadvertently landing on it. Despite searching, I have not been able to locate any settings that would allow me to do this. Any assistance would be greatly appreciated.

There is no way to disable the pages.dev subdomain. You can however set up a Bulk Redirect as mentioned in this post

If you haven’t already check out Prevent your pages.dev deployments showing in search results​​ in the Pages Documentation too.

1 Like

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