Redirect all pages using Page Rules

Hi there,

If I want to redirect all URLs to a certain thing, how would I do that?

I want to redirect every page to that same URL with a ~ on the end.

(e.g. if I had example.com/example123, it would become example.com/example123~. This would be the same for all pages.

Thanks!

That is probably not possible with page rules (even if you had a dummy rule for ~) as you’d configure a redirection loop.

You could use Workers.

How would I do that? I have no idea how to code, you see.

https://developers.cloudflare.com/workers/ should be a start. You might also find some examples here on the forum, be careful with copy pasting though.

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