After configure: $locationProvider.html5Mode(true).hashPrefix('!')
when i enter url : www.example.com/search on browser(chrome) and press enter then it turn into : www.example.com/#%2Fsearch and then go to home page.
when i click on the link like <a href="/search" /> then its work.
if i remove .hashPrefix('!') then also works fine.
But i need that hashPrefix('!')
Any idea how could i solve this?