`--pretty-urls` should lookup `[name].html` first before lookup same `[name]/` folder
Author: SukkaWCreated Aug 19, 2026Updated Aug 19, 2026
Given the following miniserve setup:
miniserve --pretty-urls --index index.html path/to/folderAnd the following folder structure:
folder/
├── example.html
└── example/ # real directory, but no index.htmlHere is the miniserve current behavior:
/example → 307 /example/
/example/ → 200 directory listing
/example.html → 200 example pageWith --pretty-urls, /example should serve the example page, not a 307 redirect to a directory listing.
Source: svenstaro/miniserve