How to set html5 true mode for angular JS application for Tomcat server

The angular application runs on the tomcat server in eclipse. I want to use $ locationProvider.html5Mode (true) to remove the "#" sign from the URL. But when I did this, my page reload did not work. I found the following solution for this. " Using this mode requires rewriting server-side URLs, basically you should rewrite all your links to your application’s entry point (for example, index.html) "

But I do not know how to do this on the tomcat server in eclipse. Please point me in the right direction.

Thanks in advance.

+4
source share
1 answer

, this

. , .

// Usually base directory is '/'
<base href="root_directory_here" />
0

Source: https://habr.com/ru/post/1542600/


All Articles