0

I am tried remove the # from my angular application.

I have followed the steps in different forum.

AngularJS routing, remove # from the URL

I have set the below configuration.

$locationProvider.html5Mode({ enabled: true, requireBase: false }); <head> <base href="/"> ... </head> 

The application is working as expected if I give my http://localhost/ if I try to refresh or give the complete url http://localhost/mypage/test.html it is not working routing and giving me 404. It is was working with #

http://localhost/#/mypage/test.html is working fine.

I am using chrome 51 any idea what is happening?

2
  • 3
    You also need to configure your webserver to support rewriting the URLs. See for example ngmilk.rocks/2015/03/09/… if you are using Apache Commented Jun 29, 2016 at 9:15
  • In that case try searching for 'angular html5mode tomcat' as I'm afraid I can't help you with tomcat configuration. Commented Jun 29, 2016 at 11:29

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.