title: Serve another(standalone) page or static file in website built with react
body: <p>I have a website built with react, which uses react-router. For some route I want to serve another page or static file, but since all request are forwarded to react router, its doesn't work. </p>
  
  <p>for example </p>
  
  <blockquote>
    <p>www.myapp.com/sitemap.xml<br>
    www.myapp.com/something.html</p>
  </blockquote>
  
  <p>^ these link works first time, but once i load website then it doesn't work, as all request goe through react router. </p>
  
  <p>Any solution to make it work all the time. Thanks.</p>
  
  <p><strong>Edit</strong></p>
  
  <p>I'm using apache server which is configured to redirect all request to index.html, i guess this is the reason for this behaviour. This is my configuration, but i don't know how to fix this.</p>
  
  <pre><code>Options -MultiViews
  RewriteEngine On
  
  RewriteCond %{HTTPS} off
  RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L]
  
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteRule ^ index.html [QSA,L]
  </code></pre>
  
  <p><strong>Update</strong>
  I tried solution suggested in answer. </p>
  
  <p>my routes looks like this, for something.html i am loading ServerLoad component</p>
  
  <pre><code>&lt;Switch&gt;
      &lt;Route exact path="/" component={Home} /&gt;
      &lt;Route path="/about" component={About} /&gt;
      &lt;Route path="/about" component={About} /&gt;
      &lt;Route path="something.html" component={ServerLoad} /&gt;
      &lt;Route component={NoMatch} /&gt;
  &lt;/Switch&gt;
  </code></pre>
  
  <p>In ServerLoad component's componentDidMount function I did this. But it doesn't work. </p>
  
  <pre><code>componentDidMount() {
      window.location.reload(true);
  }
  </code></pre>
  
  <p><strong>More</strong>
  I have setup this project using create-react-app, and serving it by express server(<a href="https://github.com/ayroblu/ssr-create-react-app-v2/blob/master/server/app.js" rel="noreferrer">like this</a>). I'am not sure if i need to do some setting there to server other static files.</p>