title: URL redirect not loading resources from correct relative source
body: <p>I have a bunch of URLs that I want to redirect to a single page.  In my .htaccess file I have...</p>
  
  <pre><code>FallbackResource home.php
  </code></pre>
  
  <p>So any link will redirect to that page, where I have a PHP script that takes the URL and loads a page from a mysql table.  I built a test page with no script/style resources and everything worked fine.  However when I added my style and javascript I get the following error:</p>
  
  <pre><code>main.js:1 Uncaught SyntaxError: Unexpected token &lt;
  </code></pre>
  
  <p>This error only appears for URLs that have a '<code>/</code>' in them.  </p>
  
  <ul>
  <li>So for the url <code>localhost/home.php</code> displays my page as it should with
  no content.</li>
  <li>The url <code>localhost/tax-information</code> will display the home.php with content<br>
  loaded 'tax-information' as it should.</li>
  <li>The url <code>localhost/tax-information/school-authority-contact-information</code> will display home.php with the content
  loaded 'tax-information/school-authority-contact-information' but will throw the error and will as a result
  render no style sheet or have any working javascript.</li>
  </ul>
  
  <p>The errors look like this:</p>
  
  <pre><code>Resource interpreted as Stylesheet but transferred with MIME type text/html: "http://localhost/toh/tax-information/css/style.css".
  Uncaught SyntaxError: Unexpected token &lt;
  </code></pre>
  
  <p>I understand that this is caused because the resource being loaded has a '<code>&lt;</code>' in the first character, but this doesn't make sense for resources like css.</p>
  
  <p>So I checked my network tab to see what resources are being loaded, and it's loading every resource in the wrong path.</p>
  
  <p><code>&lt;style src="css/style.css&gt;</code> ends up loading localhost/toh/tax-information/css/style.css instead of localhost/css/style.css.  Upon opening that file, it is not CSS but rather is the full HTML of the requested page (thus the '<code>Unexpected token &lt;</code>' error).  Even the pictures end up becoming HTML somehow when you click on them in the network tab.  Anything that is loaded through a cdn (so any full URL resource) loads fine.</p>
  
  <p>This only happens for URLs that have a secondary path like (localhost/this/that) but loads the correct resources for anything that is just a primary path (localhost/this).</p>
  
  <p>I can see the problem is caused somehow by FallbackResource and using relative paths for loading resources.  If I change a resource's path to be absolute(say css/style.css -> <a href="http://localhost/css/style.css" rel="noreferrer">http://localhost/css/style.css</a>) then it works fine with no issues.  Recoding everything to an absolute path will solve my problem but isn't a practical solution.  This makes me believe my problem is my .htaccess.  Is there another way I can redirect all url paths to a single page and have them load resources through a relative path?</p>