fix trailing slash redirect nonsense.