Fixed 404 redirect error from within directories