title: Why are my javascript files the only files that get a 404?
body: <p>I'm having a really strange problem where everything loads, but my javascript folder and files are getting the 404 error. Every other folder path to my css and php files are working fine.</p>
  
  <p>I checked the usual problems: wrong folder path, misnamed folder both in my header and the folder path on my server. </p>
  
  <p>/var/www/website.com/html/javascript/files.js</p>
  
  <p>How the paths are declared:</p>
  
  <pre><code>&lt;script src= "/javascript/StickyBar.js"&gt;&lt;/script&gt;
  
  &lt;script src="/javascript/pvc.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>I have it working in xampp on localhost just fine. localhost works exactly as intended, no 404s and the code runs perfect. I transferred the entire folder system into my server and /javacript/files.js are getting 404s on the actual website. </p>
  
  <p>GET [website]/javascript/StickyBar.js net::ERR_ABORTED 404 (Not Found)</p>
  
  <p>GET [website]/javascript/pvc.js net::ERR_ABORTED 404 (Not Found)</p>
  
  <p>If you're wondering why I have them absolute instead of relative, it's because I have them declared (first code snippet) in header.php in a folder that's accessed by index.php on multiple folder levels using</p>
  
  <pre><code>&lt;?php include '/view/header.php' ?&gt;
  </code></pre>
  
  <p>(view is in folder path and works) so a relative path wouldn't work as the relativity shifts depending on the page.</p>
  
  <p>The strange thing is that according to chrome, it downloads. I'm not sure if I'm reading it wrong, because it doesn't show up in sources on chrome's debugger. The download is the blue part of the bar and it seems to match with their file sizes in regards to download time. There's also a much longer green part of the bar that marks the wait time.</p>
  
  <p>I'm running ubuntu server 18.04 with lamp on it running as it should. Everything is updated.</p>
  
  <p>If you need more details, let me know. </p>
  
  <ol>
  <li><p>File path gist <a href="https://i.imgur.com/Q89SMe1.png" rel="nofollow noreferrer">here</a></p></li>
  <li><p>Those two lines are in header.php. header.php is included in index.php and every other page folder i.e. in home.php, about.php, pages like that.</p></li>
  <li><p>header.php is the header file with typical html layout from DOCTYPE to head and header <a href="https://i.imgur.com/nztngFc.png" rel="nofollow noreferrer">here</a></p></li>
  <li><p>apache server vhost: </p>
  
  <p>ServerAdmin admin@example.com</p>
  
  <p>ServerName example.com</p>
  
  <p>ServerAlias www.example.com</p>
  
  <p>DocumentRoot /var/www/example.com/html</p></li>
  </ol>