title: not work nested route react app(when page refresh) , after depoly on netlify
body: <p>I createed a nested route on my react app, then i deployed app on Netlify.
  but the nested route not workig after refreshing the page on Netlify(that is okay on my localhost)</p>
  <p>note1 : i add _redirects file inside public folder and write on</p>
  <pre><code>/* /index.html 200
  </code></pre>
  <p>note2 : and i add .htaccess file in root app</p>
  <p>note3 : i get error in colsole after refresh in nested route
  er :</p>
  <pre><code>Uncaught SyntaxError: Unexpected token '&lt;'
  </code></pre>
  <pre><code>&lt;IfModule mod_rewrite.c&gt;
      RewriteEngine On
      RewriteBase /
      RewriteRule ^index\.html$ - [L]
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteCond %{REQUEST_FILENAME} !-d
      RewriteRule . /index.html [L]
   &lt;/IfModule&gt;
  </code></pre>
  <p>App.js</p>
  <pre><code>const App = () =&gt; {
    return (
      &lt;Fragment&gt;
        &lt;BrowserRouter basename=&quot;/&quot;&gt;
          &lt;Header /&gt;
          &lt;Switch&gt;
            &lt;Route  path=&quot;/register/:nested&quot; component={Nested} /&gt;
            &lt;Route exact path=&quot;/register&quot; component={Register} /&gt;
            &lt;Route path=&quot;/login&quot; component={Login} /&gt;
            &lt;Route exact path=&quot;/&quot; component={Home} /&gt;
          &lt;/Switch&gt;
        &lt;/BrowserRouter&gt;
      &lt;/Fragment&gt;
    );
  };
  export default App;
  </code></pre>
  <p>Nested.js</p>
  <pre><code>const Nested = () =&gt;{
      return &lt;div&gt;
          &lt;p&gt;Nedted&lt;/p&gt;
      &lt;/div&gt;
  }
  export default Nested;
  </code></pre>
  <p>Header.js</p>
  <pre><code>
      const Header = () =&gt;{
          return &lt;header&gt;
                  &lt;NavLink to='/register/nestedroute'&gt;Nested&lt;/NavLink&gt;
               &lt;NavLink to='/login'&gt;Login&lt;/NavLink&gt;
               &lt;NavLink to='/register'&gt;Register&lt;/NavLink&gt;
              &lt;NavLink exact to='/'&gt;Home&lt;/NavLink&gt;
          &lt;/header&gt;
      }
      export default Header;
  
  </code></pre>