Redirect all pages to a specifc page on the site

I need to redirect all the pages on the site (www.example.com) to a specific page on the site (www.example.com/notice.html).

I tried doing this with Page rules but that rejects the redirection saying “there is a loop”.

I also tried the redirect rules as follows:
(starts_with(http.request.full_uri, “https://www.example.com/”) and not starts_with(http.request.full_uri, “https://www.example.com/notice.html”))

These are not working. Please help me with setting up the correct rules to achieve this.

Thanks!

That should work, but you’re probably getting errors due to the ongoing API issue being currently investigated.

Thanks! However, the requirement is urgent.

The Cloudflare API got stable for a moment and I could set up the required redirection! Thanks!

1 Like

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