First I'd like to say, that this was a neat little tool for directory listing.
I have one question though.
And listing the directory and sub directories work fine. But I assume I have to put something in the subdirectories to force the Directorylister interface, if someone goes to
https://www.example.com/downloads/subdirThe normal file index appears.
I "solved" it by making an index.php file and making it redirect to the same adress, but with the "?dir=teamviewer". Which actually works, but isn't really convenient, as I have to create a new php file and edit the redirect manually.
I also made index.php in subdirectories (from download) invisble.
I'm terrible at coding, but I assume you already solved this previously, but how?
Something to redirect with the adress and add ?/dir="currentdirectory"
Greetings
Thomas