title: React Router + iis? How to enable routing
body: <p>I am using react-router and have put it in it, but I noticed that when I start at the landing page and go through all my routes it works. If I just type in a path url I get a 404.</p>
  
  <p>Am I guessing this has something to do with the server not knowing how to pass it off to my client routes?</p>
  
  <p>I found <a href="https://stackoverflow.com/questions/35533291/how-to-use-react-router-createbrowserhistory-on-microsoft-iis-to-make-routing">this</a> post but I am a bit confused with the answers as some say to update the web.config file but I don't have one as it is a Reactjs only.</p>
  
  <p>Edit</p>
  
  <p>Here is what I have now for my rewrite</p>
  
  <p><a href="https://i.stack.imgur.com/ZmP6d.png" rel="noreferrer"><img src="https://i.stack.imgur.com/ZmP6d.png" alt="enter image description here"></a></p>
  
  <p>I am now getting a white page when I try to navigate to a URL that is not the index page.</p>
  
  <p>When I look at my console. I see</p>
  
  <pre><code>Uncaught SyntaxError: Unexpected token &lt;
  </code></pre>
  
  <p>which goes to main.js and complains about this <code>"&lt;!DOCTYPE html&gt;"</code> it almost seems as my index.html was merged into the javascript file.</p>