Fixing a bug where directory requests without a trailing slash would break. Implementing 301 Moved Permanently to fix