Oh! Nice! Loaded as PHP module, not a NGINX or Apache module. Sorry for mistake about who load this module. More rewrite
details, check Caddy Docs.
Caddy
rewrite {
r .*
ext /
to {path} {path}/ /index.php?_url=/{path}&{query}
# below, an alternative, maybe
# to {path} {path}/ /index.php?_url=/{path}&{uri_escaped}
}