I want to enable HTML5 mode for my app. I have put the following code for the configuration, as shown here:
return app.config([\'$routeProvider\',\'$location
Your server side code is JAVA then Follow this below steps
step 1 : Download urlrewritefilter JAR Click Here and save to build path WEB-INF/lib
step 2 : Enable HTML5 Mode $locationProvider.html5Mode(true);
step 3 : set base URL
step 4 : copy and paste to your WEB.XML
UrlRewriteFilter
org.tuckey.web.filters.urlrewrite.UrlRewriteFilter
UrlRewriteFilter
/*
REQUEST
FORWARD
step 5 : create file in WEN-INF/urlrewrite.xml
/
/index.html
/example
/index.html