i have issue of rewrite url in tomcat.
worked well
i implemented location html5mode in y angular app, using refer:
// use html5 history api
$locationprovider.html5mode(true);
and in index.html
<base href="/">
https://scotch.io/quick-tips/pretty-urls-in-angularjs-removing-the-hashtag
and changes in gruntfile.js, worked great , see clean url in address bar,
ex:http://demoapp/#/hichanged http://demoapp/hi but
- when moved code base apache tomcat machine( staging server), realized need change configurations, , followed http://tuckey.org/urlrewrite/
for installing/enabling mod_rewrite, same not working in staging server, when type url http://demoapp/#/hi or http://demoapp/hi
the page displays
i feel need change thing in here
<filter> <filter-name>urlrewritefilter</filter-name> <filter-class>org.tuckey.web.filters.urlrewrite.urlrewritefilter</filter-class> </filter> <filter-mapping> <filter-name>urlrewritefilter</filter-name> <url-pattern>/#/*</url-pattern> <!-- not sure, type of pattern should go here --> <dispatcher>request</dispatcher> <dispatcher>forward</dispatcher> </filter-mapping>
actually not sure tomcat,
so guys here please me in fixing this, please let me know if need more details
Comments
Post a Comment