Configuring rules for Pages

Hey all!

I have a Pages project with Cloudflare without a custom domain name assigned to it and I would like to configure some Rules. Is it possible to do so? Or I am forced to configure a custom domain and create a new website (Rules seems to be only active for each website).

Thank you!

Stefan

Hey,

What rules are you looking to add? If you wanted to add headers or do redirects then you may be interested in the _headers (info here: https://developers.cloudflare.com/pages/platform/headers) or _redirects file (info here: https://developers.cloudflare.com/pages/platform/redirects)

For Transform Rules or Page Rules though, you would need a custom domain attached and configure it through there. You can achieve a lot of the same things through Functions however (info here: https://developers.cloudflare.com/pages/platform/functions).

@WalshyMVP thank you for your reply. I went with a custom domain. And works like a charm :slight_smile:

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