You can shorten it:
@oldPath path_regexp ^/old/([\w-]+)
rewrite @oldPath /new/{re.oldPath.1}.php
Having matching and handling be separate steps are a huge benefit to composability of config, you can have pluggable matchers and handlers.Re you issue with netdata, ask on the forums for help.