Need to add a custom header in page rule

i would like to add a custom header in the page rule for example.com/*/*/df.html so that header name is CF-custom-headername and value is $1-$2-somevalue

where $1 is the 1st * and $2 is the 2nd *

Page Rules can’t do this, but Workers can.

Here’s one that looks at headers and URLs. It’s a pretty rough start, though.

1 Like

It would be easy to handle it here without much complexity. Please add it as a request.

This topic was automatically closed after 14 days. New replies are no longer allowed.