Redirect Rule not doing anything

I can’t get my Redirect rule to work. Therefore, I’ve set up a simple case:

(http.request.uri contains "mysite.com/privacy")

Static redirect to google.com with status code 307.

Still, I visit mysite.com/privacy and it just shows that page instead of redirecting. I have Cloudflare in Development mode, so it can also not be the cache. How can I debug this?

The trace tool can be helpful in doing that

The URI will never include the hostname

Represents the URI path and query string of the request.

Example value:
/articles/index?section=539061&expand=comments

The examples they give you in the visual expression editor are helpful.

You probably want hostname ( http.host) eq and URL Path (http.request.uri.path) eq.

For example:
(http.host eq "mysite.com" and http.request.uri.path eq "/privacy")

2 Likes

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