title: How to run React Project w/ Router on Xampp
body: <p>I tried to create a fresh new <em>react-webpack-redux</em> (yeoman generator) project and there something I notice with routing when running compiled project on xampp w/c I don't have idea how to solve.</p>
  
  <p>First scenario: <strong>Without Router Compilation</strong>. Compiled using <code>npm run dist</code>. Copied the files from dist folder and placed in my htdocs in my public server (using xampp).</p>
  
  <p><a href="https://i.stack.imgur.com/jfrsR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jfrsR.png" alt="enter image description here"></a>
  It works fine. Also works fine in my local Drive C:</p>
  
  <p>Second scenario: <strong>With Router Compilation</strong>. Now when I use React-Router. 
  (here is my code)</p>
  
  <p><a href="https://i.stack.imgur.com/qfrdD.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qfrdD.png" alt="Code with router"></a></p>
  
  <p>It worked of course on webpack dev localhost:8000 w/ the command <code>npm run serve</code>.</p>
  
  <p><a href="https://i.stack.imgur.com/74V3c.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/74V3c.png" alt="enter image description here"></a></p>
  
  <p>But when I compile to production. <code>npm run dist</code> and then same thing copy the files from /dist folder and place in my public server (same as the first scenario - using xampp) inside htdocs folder. </p>
  
  <p><a href="https://i.stack.imgur.com/w9so6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/w9so6.png" alt="enter image description here"></a></p>
  
  <p>It won't run.</p>
  
  <p>Am I missing something when using Routes? Or do i need to configure something in my public server (I'm using xampp).</p>
  
  <p>I hope you can help me on this.</p>
  
  <p>Thank you.</p>