title: React Router v4 not working after Webpack build
body: <p>I am trying to serve my "React App build" with a simple python server but routing is not working:</p>
  
  <blockquote>
    <p>Error code 404.</p>
    
    <p>Message: File not found.</p>
    
    <p>Error code explanation: 404 = Nothing matches the given URI.</p>
  </blockquote>
  
  <p>Which is the good way to setup routing with React router v4 in order for the built version to work?</p>
  
  <p>It works well with the Webpack dev server but as soon as I try to build it with webpack (<code>webpack</code>), then the routing stops working. </p>
  
  <p>Do I need to provide special flags to Webpack in order for the routing to work after build?</p>
  
  <pre><code>import {
    BrowserRouter as Router,
    Route} from 'react-router-dom';
  import {createBrowserHistory} from 'history';
  
  ...
  let browserHistory = createBrowserHistory({});
  
  ...
  &lt;Router history={browserHistory}&gt;
    &lt;div&gt;
      &lt;App /&gt;
  
      &lt;Route exact path="/" component={Home} /&gt;
      &lt;Route path="/workflow" render={
          () =&gt; (
            &lt;Workflow
              components={components}
              models={models}
              patient={patient}
              steps={steps}/&gt;) } /&gt;
    &lt;/div&gt;
  &lt;/Router&gt;
  </code></pre>
  
  <p>Thanks</p>