Focux
CDCloudflare Developers
•Created by Focux on 9/17/2024 in #general-help
URL origin rewrite using rule snippets
I'm trying to do an URL rewrite based on the HTTP status code, so basically:
if
example.com/something
status equals 404, then keep showing the same example.com/something
URL but show the content of example.ORG/something
.
This is the code I currently have and it's not working, it's instead doing a redirect to example.org/something
and I don't want that. I want to mask that content under the first domain.
2 replies