Have you tried setting the path field to /subdir/*
? That already does what you are asking for.
The only caveat is that it will not handle a request for /subdir
- it needs the trailing /
to match.
If you want to handle /subdir
as well, then you can use /subdir/?*