Bulk redirect to custom domain as target url ain't working

So when I try to add two bulk redirects to basically disable my .pages.dev subdomain entirely so that it's not accessible for public, I get the error "cannot save URLs, invalid target url" (watch attached screenshot). Yes I have already purchased the target url (the custom domain) via cloudflare and yes I have already attached it onto the cloudflare page and the page of course is already accessible via the custom domain (I've tested it out so you can be sure lol). Now I don't know if I have to mess with the parameters of each entry for the bulk redirects, and that's why I just kept it at default ...
4 Replies
Chaika
Chaika12mo ago
The Target URL has to include the scheme, i.e prefix it with https:// Bulk Redirects don't support wildcards, if you wanted to include all preview subdomains you can click Edit Parameters -> include subdomains (or you could enable CF Access on them under Settings of the Pages Project so only you could access them) You'd likely want to enable preserve query string/subpath matching/preserve path suffix as well in Edit Parameters so it works on any path
proudyyyy
proudyyyyOP12mo ago
@Chaika But I'd still like to have the opportunity to implement sometime subdomains in case I need them. Is that somehow possible?
Chaika
Chaika12mo ago
You mean allow specific previews or something? You can add a Custom Domain at a specific branch as a workaround: https://developers.cloudflare.com/pages/how-to/custom-branch-aliases/, but no way to just exclude one. I'd recommend using CF Access over Bulk Redirects for the previews for that reason
Erisa
Erisa12mo ago
If its setup with Access then you can add bypass policies for specific previews which is annoying but doable
Want results from more Discord servers?
Add your server