I want to active html5Mode in angularJS, but I don\'t know why it\'s not working. Is there anything wrong with my code?
Try this
If you are deploying your app into the root context (e.g. https://myapp.com/), set the base URL to /:
...
Angular Documentation