title: React app on server while refreshing the page shows 404 page
body: <p>I am build the react app using the <code>create_react_app</code>. Now i move the build to the server and run the app using <a href="https://www.npmjs.com/package/serve" rel="nofollow noreferrer">serve</a>. My app will load the data from the apis. When i refresh the page it shows 404 page not found error. Also i tried with <a href="https://www.npmjs.com/package/http-server" rel="nofollow noreferrer">http-server</a></p>
  
  <p>When i was some page <code>/dashboard</code> and refersh the page it shows 404. Now i have to go to <code>BASE_URL/</code> then only it works. But in my local when i refersh everything works.</p>
  
  <p>This is my package.json</p>
  
  <pre><code>"react-dates": "^17.0.0",
  "react-dom": "^16.4.0",
  "react-i18next": "^7.7.0",
  "react-redux": "^5.0.7",
  "react-router": "^4.2.0",
  "react-router-dom": "^4.2.2",
  "react-scripts": "1.1.4"
  </code></pre>
  
  <p>And i use <code>apache</code> on my server.</p>
  
  <p>I think this is the problem not with my code. If you guys know anything about this, please help me.</p>
  
  <p>And <code>http-server</code> run command was <code>http-server ./build -p 7001</code></p>