title: ngRoute set base url for all routes
body: <p>Is it possible to add a <strong>base url</strong> to all routes in an <em>AngularJS</em> app? Essentially changing its location on the server (kind of, if that makes sense... so it would be accessed not via <code>/</code> but via <code>/something/</code>).</p>
  
  <p>To add some context, I am trying to place an existing <em>Angular</em> app behind some authentication  such that the app would now be accessed at address say <code>http://mysite/secure</code> after successful login.</p>
  
  <p>The problem is if I was to load the app at <code>http://mysite/secure</code> it works fine (the server will obviously serve up the correct page), but clicking any link would result in a page reload and route to <code>http://mysite/#newpage</code> instead of <code>http://mysite/secure/#newpage</code>.</p>
  
  <p>Without adding <code>/secure/</code> to all of the routes and link element is this possible? Cheers, sorry if that is not worded well.</p>