Bypassing routes for a subfolder

I have a requirement where direct download access is supposed to be given to specific files (via direct link) for a subfolder of my www directory. This right now doesn’t work because Slim (btw, using V3) thinks it’s a route and then gives me a 404.

Is there any way of doing this via .htaccess? Or do I have to implement a custom route/controller to do this?

Appreciate any help.

how does your .htaccess looks like now?

  • there should be rule basically saying “if file exist -> serve this file; otherwise go to index.php”