angular ui router- urlRouterProvider otherwise redirection

It seems like the $urlRouterProvider.otherwise('/') only works for url which consist 1 segment only i.e abc.com/abcdefg will be redirected to abc.com/ if abcdefg is not defined as part of the state.

But something like abc.com/abc/abcd or abc.com/abc/abcd/abcde/abcdef and so on (url with more than 1 segments ) won't get redirected to abc.com/

Does the $urlRouterProvider.otherwise only works on url with 1 segment only?