#1577·miniserve

`--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:

bash
miniserve --pretty-urls --index index.html path/to/folder

And the following folder structure:

folder/
├── example.html
└── example/       # real directory, but no index.html

Here is the miniserve current behavior:

/example      → 307 /example/
/example/     → 200 directory listing
/example.html → 200 example page

With --pretty-urls, /example should serve the example page, not a 307 redirect to a directory listing.