title: react-router-redux redirect to absolute url
body: <p>I'm migrating a react application and I'm trying to split it. Basically, I would like to redirect some client-side react routes to absolute urls (or relative, but at least go with a server roundtrip, where reverse proxying is done)</p>
  
  <p>Note that</p>
  
  <ul>
  <li>react-router 3.0.0</li>
  <li>react-router-redux 4.0.7</li>
  <li>The app have these urls
  
  <ul>
  <li><a href="http://myhost/" rel="noreferrer">http://myhost/</a> => homepage</li>
  <li><a href="http://myhost/someroute1" rel="noreferrer">http://myhost/someroute1</a> => a first route</li>
  <li><a href="http://myhost/someroute2" rel="noreferrer">http://myhost/someroute2</a> => a second route</li>
  <li><a href="http://myhost/someroute3" rel="noreferrer">http://myhost/someroute3</a> => a third route</li>
  </ul></li>
  </ul>
  
  <p>Everything is inside react right now.</p>
  
  <p>Routing looks like this :</p>
  
  <pre><code>&lt;Provider store={store}&gt;
    &lt;Router history={history}&gt;
      &lt;Route path="/" component={Root}&gt;
        &lt;IndexRoute component={Home} /&gt;
        &lt;Route path="/someroute1" component={Route1} /&gt;
        &lt;Route path="/someroute2" component={Route2} /&gt;
        &lt;Route path="/someroute3" component={Route3} /&gt;
      &lt;/Route&gt;
    &lt;/Router&gt;
  &lt;/Provider&gt;
  </code></pre>
  
  <p>The goal is to redirect, say, routes "/" and "/someroute2" to static urls (server urls). As so :</p>
  
  <ul>
  <li><a href="http://myhost/" rel="noreferrer">http://myhost/</a> => <a href="http://anotherhost/" rel="noreferrer">http://anotherhost/</a></li>
  <li><a href="http://myhost/someroute1" rel="noreferrer">http://myhost/someroute1</a> => keep react routing</li>
  <li><a href="http://myhost/someroute2" rel="noreferrer">http://myhost/someroute2</a> => <a href="http://anotherhost/anotherroute5" rel="noreferrer">http://anotherhost/anotherroute5</a></li>
  <li><a href="http://myhost/someroute3" rel="noreferrer">http://myhost/someroute3</a> => keep react routing</li>
  </ul>
  
  <p>The question is simple : <strong>is is possible to replace, in a clean way, a react router route with an absolute url ?</strong></p>
  
  <p>I heard about Redirect and IndexRedirect components, but I can't figure how to use it properly, and, due to a lack of react / react-router, I can't figure if there would be any dangerous side-effects (in history for example).</p>