title: XAMPP Error with using ErrorDocument in .htaccess
body: <p>I am using a .htaccess file for a short url system that I made. It is supposed to use a file, sudir.php, to find the url that the "code" that was entered is for. But whenever I goto the page at <code>http://localhost/shorturl/t10m3S</code> which doesn't exist so it is supposed to redirect with sudir.php, but it only takes me to a generic "Not Found" page.</p>
  
  <p>This is what i have in my <code>.htaccess</code>:  </p>
  
  <blockquote>
    <p>ErrorDocument 404 /shorturl/sudir.php</p>
  </blockquote>
  
  <p>If I change it to my <code>phptesting</code> folder, it shows the index of that folder. If I change it to just the <code>shorturl</code> folder, it still gives me the generic 404 error page. If I remove it completely it shows the default page from Apache. So it basically seems like Apache or <code>.htaccess</code> or something doesn't know that the <code>shorturl</code> folder exists even though I can access it and it works. It seems all I need is for it to acknowledge that the folder is there and actually load the <code>sudir.php</code> file, but I don't know what to do.</p>
  
  <p>Additional Info:<br>
  I am using a <code>.htaccess</code> file in a different directory to redirect to YouTube pages like how <code>youtu.be</code> does and it works perfectly fine. I did have the same problem with it though at first, but I just renamed the folder it was in and changed the <code>.htaccess</code> to correspond and it started working. I have tried the same with <code>shorturl</code>, but it did not work.</p>