Handling routes without hashbang using angular-ui-router
You need to set up two things:
- A so-called "html5Mode" in your AngularJS configuration. That's the easy part:
$locationProvider.html5Mode(true);
- Set rewrites on your server so any request renders only your main html page.
From AngularJS docs on routing:
Using this mode requires URL rewriting on server side, basically you have to rewrite all your links to entry point of your application (e.g. index.html).