correct bad uri redirect