How to force using of "Directorylister", if user goes directly to subfolder?

11 views
Skip to first unread message

Thomas Suominen

unread,
Nov 22, 2018, 8:44:09 AM11/22/18
to Director...@googlegroups.com
Hi!

First I'd like to say, that this was a neat little tool for directory listing.

I have one question though.

I've put my script in a folder at https://www.example.com/downloads

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/subdir
The 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



Reply all
Reply to author
Forward
0 new messages