title: React Router - 500 Internal Server Error (create-react-app)
body: <p>I am tring to create separate url for my component with React Router. When I add <code>&lt;Link to= {process.env.PUBLIC_URL+"/mylink"}&gt;mylink&lt;/Link&gt;</code> and click on it - the page opens fine. But when i copy link <code>example.com/mysite/mylink</code> and open it in new window I got <code>500 Internal Server Error</code>. (This all happens on my build)</p>
  
  <p>In index.js:</p>
  
  <pre><code>const baseUrl = process.env.PUBLIC_URL;
  ReactDOM.render(&lt;Provider store={store}&gt;
      &lt;BrowserRouter&gt;
              &lt;Switch&gt;
                  &lt;Route exact path= {baseUrl + "/"} component={App}/&gt;
                  &lt;Route path={baseUrl + "/mylink"} component={MyComponent}/&gt;
             &lt;/Switch&gt;
      &lt;/BrowserRouter&gt;
  &lt;/Provider&gt;, document.getElementById('root'));
  </code></pre>
  
  <p>.</p>