yihui/servr

Redirect directories to ensure they end in /

Closed this issue · 1 comments

This is pretty minor, but if you currently do to http://localhost:4321/subdir it serves subdir/index.html, but the links might not work because the directory is missing a trailing slash. Most web servers automatically redirect you to subdir/ to avoid this problem

Added the 301 redirection. Thanks!