angularjs - url rewritting for jhipster -


i have question , don't know if it's possible. i'm trying remove '#' in jhipster website urls , saw that's difficult in code.

exemple: http://www.exemple.com/#/test -> http://www.exemple.com/test

so, possible other way ? .htaccess or else ?

i want precise, i'm working old version of jhipster , it's angularjs application.

i'm generating .war , i'm deploying on dedicated server apache2 , application using port 8000 made conf virtual hosts. maybe can add here ?.

thanks

yes can in angularjs -

basically need # non-html browsers or else without make http call.(so used old browsers). can tell angular use html5 mode-

in route config add html5mode(true); @ end. eg-

app.config(function($routeprovider,$locationprovider) {  $routeprovider.when('/home', {     templateurl:'/views/home.html' });  $locationprovider.html5mode(true);  }); 

in html head tag add base tag -

<html> <head> <meta charset="utf-8">     <base href="/"> </head> 

Comments

Popular posts from this blog

html - How to set bootstrap input responsive width? -

javascript - Highchart x and y axes data from json -

javascript - Get js console.log as python variable in QWebView pyqt -