Fix a directory/404_override bug and some routing-related optimizations
3 files changed