title: angularjs html5mode refresh page get 404
body: <p>I've created an app using AngularJS with GAE (Google App Engine – Java).</p>
  <p>I want to convert it compatible with SEO.</p>
  <h3>index.html</h3>
  <ul>
  <li><code>&lt;meta name=&quot;fragment&quot; content=&quot;!&quot; /&gt;</code></li>
  <li><code>&lt;base href=&quot;/&quot;&gt;</code></li>
  </ul>
  <p>and the body is loaded dynamically through <code>&lt;div ui-view&gt;&lt;/div&gt;</code>.</p>
  <h3>app.js</h3>
  <p><code>$locationProvider.html5Mode(true);</code></p>
  <p>The url works fine but when I refresh page I get 404 error.</p>
  <p>Do you have any idea, what this causes?</p>