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

python - django admin: changing the way a field (w/ relationship to another model) is submitted on a form so that it can be submitted multiple times -

go - serving up pdfs using golang -

ffmpeg - Using Live555 HTTP capacities as a server for signaling -