title: How can I redirect from wildcard routes to the home page?
body: <p>I want to redirect from any * route to my home page, because I want to change url to '/'. </p>
  
  <p>I followed this link:</p>
  
  <p><a href="https://stackoverflow.com/questions/32128978/react-router-no-not-found-route">React-Router: No Not Found Route?</a></p>
  
  <p>But when I want to change any route path It moves me independently to the url '/'</p>
  
  <pre><code>&lt;Route exact path="/" component={MMPStudio} /&gt;
  &lt;Route exact path="/galeria" component={Gallery} /&gt;
  &lt;Route exact path="/kontakt" component={Contact} /&gt;
  &lt;Route exact path="/fotobudka" component={Fotobudka} /&gt;
  &lt;Route exact path="/jubiler" component={Jubiler} /&gt;{" "}
  &lt;Route exact path="/fotobudka/kontakt" component={FotobudkaContact} /&gt;
  &lt;Route exact path="/jubiler/galeria" component={JubilerGallery} /&gt;
  
  &lt;Switch&gt;
      &lt;Route exact path="/" component={MMPStudio} /&gt;
      &lt;Redirect from="*" to='/' /&gt;
  &lt;/Switch&gt;
  </code></pre>