Figured this out.
Needs a rule saying path doesn't start with the subdir, and then a condition with execute function set path "/subdir/%[path]" if the condition is false.
Needs a rule saying path doesn't start with the subdir, and then a condition with execute function set path "/subdir/%[path]" if the condition is false.