title: React router refresh 404
body: <p>I have basic react app. </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>    import React, { Component } from 'react'
      import ReactDOM from 'react-dom'
      import {BrowserRouter as Router, Link, Route} from 'react-router-dom'
      import registerServiceWorker from './registerServiceWorker';
      import './App.css'
      import About from './routerTest/About';
      import Users from './routerTest/Users';
      import User from './routerTest/User';
  
       class App extends Component {
  
        render() {
          return (
      &lt;div className="App"&gt;
    &lt;header&gt;
      &lt;Link to="/"&gt;Home&lt;/Link&gt;
      &lt;Link to="/about"&gt;About&lt;/Link&gt;
      &lt;Link to="/users"&gt;Users&lt;/Link&gt;
      &lt;/header&gt;
      &lt;Route  path="/about"   component={About}/&gt;
      &lt;Route  path="/users"   component={Users}/&gt;
      &lt;Route  path="/" exact HomePage  render={() =&gt; &lt;h1&gt;HomePage&lt;/h1&gt;}/&gt;
  
      &lt;/div&gt;
            )
        }
      }
  
  
      ReactDOM.render(
        &lt;Router&gt;
         &lt;App /&gt;
  
  
        &lt;/Router&gt;
        , document.getElementById('root'));
        registerServiceWorker();</code></pre>
  </div>
  </div>
  </p>
  
  <p>About.js</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>import React from 'react'
  
  const About = () =&gt; {
      return (`enter code here`
          &lt;div&gt;
              &lt;h1&gt;About&lt;/h1&gt;
          &lt;/div&gt;
      )
  }
  
  export default About</code></pre>
  </div>
  </div>
  </p>
  
  <p>when I work on localhost everything works fine. But when I deploy it to any hosting service.(ex:alwaysdata, webhost) and refresh the page in any route it gives me error You don't have permission to access /about on this server. What is wrong here</p>