title: JavaScript: Can I get file extensions even if they are hidden via htaccess
body: <p>As the title states. I am looking to get the extension of the file, even if it is hidden via htaccess, for example:</p>
  
  <p><code>.../whatever/index</code></p>
  
  <p>Imagine it was a <code>php</code> file, is it possible to know that and extract it via JavaScript or jQuery?</p>
  
  <p>Thanks in advance, can't find it anywhere. All I can find is people trying to actually hide the extension.</p>