resolving 404s for trailing urls