title: React router not working on server, working fine on my localhost
body: <p>Hi have create React Based app it is working perfectly on my localhost but on in my server I am not getting why, I am using windows machine and I have host my webbsite on linux based AWS based server, issue is when I type any subpage link to browser addressbar then it dosen't open showing error cann't Get 'page path', it's fine on my localhost here my code</p>
  
  <p>indexjs</p>
  
  <pre><code>import React from 'react';
  import ReactDOM from 'react-dom';
  import './index.css';
  import Webroute from './Webroute';
  import { BrowserRouter } from 'react-router-dom'
  import registerServiceWorker from './registerServiceWorker';
  
      ReactDOM.render(( 
          &lt;BrowserRouter&gt;
              &lt;Webroute /&gt; 
          &lt;/BrowserRouter&gt;
      ), 
      document.getElementById('root'));
      registerServiceWorker();
  </code></pre>
  
  <p>webroute.js</p>
  
  <pre><code>import React from 'react';
  import {Switch, Route} from 'react-router-dom';
  import Home from './Components/Home/Home';
  import Preview from './Components/Preview/Preview';
  import Create from './Components/Create/Create';
  import AllCards from './Components/AllCards/AllCards';
  import Policy from './Components/Policy/policy';
  
  const Webroute = () =&gt; (
          &lt;Switch&gt;
              &lt;Route exact={true} path="/" component={Home} /&gt;
              &lt;Route path="/preview/:previewid/:type/:cardid" component={Preview} /&gt;
              &lt;Route path="/create/:type/:cardid" component={Create} /&gt;
              &lt;Route path="/browse" component={AllCards} /&gt;
              &lt;Route path="/policy" component={Policy} /&gt;
              &lt;Route path="*" component={Home} /&gt;
          &lt;/Switch&gt;
  )
  
  export default Webroute;
  </code></pre>
  
  <p>Not getting idea what the wrong with it.. and why it's fine on my local machine.</p>