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

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -