darkhttpd icon indicating copy to clipboard operation
darkhttpd copied to clipboard

[FR] Simple clean url support

Open Ssamm45 opened this issue 1 year ago • 1 comments

Some static site generators output expecting the server to have pretty URLs turned on. Meaning a request to /about would serve /about.html.

It could be useful to add an option to, when given a URL with no extension, check if the file exists with the given extension. darkhttpd --default-extension 'html'.

Ssamm45 avatar Nov 22 '24 22:11 Ssamm45

I like to just make it a directory so the URL looks like /about/ :)

If you have a strong need for this, I'd be willing to accept a patch. Please also write a test.

emikulic avatar Jan 25 '25 05:01 emikulic