title: Can access paths externally using react router on top of a asp.net project
body: <p>I have a asp.net project that runs on IIS, and I've got a page that renders the React SPA. When navigating from inside the app, then the react router seems to do the work and I'm routed to the right page. The problem hits when I either refresh the current page or try to access a page by typing the url. I've done a lot of searching, but the solutions that other people have gotten don't seem to work for me.
  I've tried to add a React Controller:</p>
  
  <pre><code>public class ReactController : Controller
      {
          public ActionResult Index()
          {
              return this.View("React");
          }
      }
  </code></pre>
  
  <p>and added a corresponding route with a catchall</p>
  
  <pre><code>routes.MapRoute("reactApp", "react/{*page}", new { controller = "React", action = "Index" });
  </code></pre>
  
  <p>Other than that I've tried to add:</p>
  
  <pre><code>&lt;rewrite&gt;
      &lt;rules&gt;
          &lt;rule name="Rewrite React links" patternSyntax="Wildcard"&gt;
              &lt;match url="react/*" /&gt;
              &lt;conditions /&gt;
              &lt;action type="Rewrite" url="/index.html" appendQueryString="true" /&gt;
          &lt;/rule&gt;
      &lt;/rules&gt;
  &lt;/rewrite&gt;
  </code></pre>
  
  <p>to the Web.config file.</p>
  
  <p>I've completly run out of ideas as to fix this.</p>