title: React Router rewriting only not existing url
body: <p>Hello i want to rewrite only not existing url with react-router-dom. Tha's the code:</p>
  <pre><code>      &lt;Router&gt;
  
          &lt;Route exact path={&quot;/&quot;}&gt;
            &lt;Home/&gt;
          &lt;/Route&gt;
  
          &lt;Route exact path={&quot;/login&quot;}&gt;
            login
          &lt;/Route&gt;
  
          &lt;Route path={&quot;*&quot;}&gt;
            &lt;Redirect to=&quot;/&quot; /&gt;
          &lt;/Route&gt;
  
        &lt;/Router&gt;
  </code></pre>
  <p>Now i want to rewrite only url that not exists, for example &quot;/example&quot;, but in this situation Router rewrites &quot;/login&quot; too. How to solve this issue?</p>