title: React-router 2.0 browserHistory doesn't work when refreshing
body: <p>Below codes report 404 not found when refreshing on page <a href="http://localhost/about" rel="noreferrer">http://localhost/about</a>. But if browserHistory is changed to hashHistory, it works fine.</p>
  
  <p>Here are my js file.</p>
  
  
  
  <pre class="lang-jsx prettyprint-override"><code>import React, {Component} from 'react';
  import ReactDOM from 'react-dom';
  import { Router, Route, IndexRoute, Link, IndexLink, browserHistory, hashHistory } from 'react-router';
  import $ from 'jquery';
  
  class App extends Component {
    render() {
      return (
        &lt;div&gt;
          &lt;h1&gt;APP!&lt;/h1&gt;
          &lt;Link to="/about"&gt;/about&lt;/Link&gt;
          {this.props.children}
        &lt;/div&gt;
      )
    }
  }
  
  class About extends React.Component {
    render() {
      return (
        &lt;div&gt;
          &lt;h2&gt;About 33&lt;/h2&gt;
        &lt;/div&gt;
      )
    }
  }
  
  var routes = (
      &lt;Router history={hashHistory}&gt;
          &lt;Route path="/" component={App} /&gt;
          &lt;Route path="/about" component={About} /&gt;
          &lt;Route path="/wealth" component={WealthExpectation} /&gt;
      &lt;/Router&gt;
  )
  
  $(document).ready(function() {ReactDOM.render(routes, document.getElementById("hello"))});
  </code></pre>
  
  <p>And the html file.</p>
  
  <pre class="lang-jsx prettyprint-override"><code>&lt;!doctype html&gt;
  &lt;html&gt;
      &lt;head&gt;
          &lt;meta charset="UTF-8"&gt;
          &lt;title&gt;Hello React&lt;/title&gt;
          &lt;script type="text/javascript" src="/static/js/jquery-1.12.2.min.js"&gt;&lt;/script&gt;
          &lt;script type="text/javascript" src="/static/js/script.js"&gt;&lt;/script&gt;
          &lt;!-- build:css --&gt;
            &lt;link rel="stylesheet" type="text/css" href="/static/bower_modules/c3/c3.min.css"&gt;
          &lt;!-- endbuild --&gt;
      &lt;/head&gt;
      &lt;body&gt;
          &lt;div id="hello"&gt;a&lt;/div&gt;
          &lt;div id="world"&gt;&lt;/div&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I've read the questions on <a href="https://stackoverflow.com/questions/34937448/react-router-v2-0-browserhistory-not-working">react-router v2.0 browserHistory not working</a> and <a href="https://stackoverflow.com/questions/27928372/react-router-urls-dont-work-when-refreshing-or-writting-manually">React-router urls don&#39;t work when refreshing or writting manually</a>. For the first one, I've already set the path to absolute path, but still not working. For the second one, I tried to import express but failed ('Uncaught TypeError: Cannot read property 'prototype' of undefined').</p>