title: Routing on github pages doesn't work. How do I fix it?
body: <p>Please tell me why when I refresh a page or if I want to manually enter a link address on my site I get a '404 not found' error. The site is located on github pages. What can I do to correct the bug?</p>
  
  <p>Routing is set up.</p>
  
  <pre><code>&lt;BrowserRouter&gt;
  &lt;Switch&gt;
       &lt;Route exact path="/event"&gt;
             &lt;Link&gt;&lt;Main /&gt;&lt;/Link&gt;
       &lt;/Route&gt;
       &lt;Route path="/api/:id"&gt;
             &lt;Description /&gt;
        &lt;/Route&gt;
  &lt;/Switch&gt;
  &lt;/BrowserRouter&gt;
  </code></pre>
  
  <p>Everything works fine on the localhost.</p>
  
  <p>Tried <code>HashRouter</code> instead of <code>BrowserRouter</code>, but then nothing appears at all.</p>