Files in root with redirect breaking my App

Ladies and Gents,

I have been scouring the forum for the past few hours but all topics regarding root file access seem to be old and closed.

I have to put a service worker to, well, work on the root dir of my app, but I can’t use it because we don’t have access unless via a redirect.

Has anyone found a way to solve that yet?