URLs: It's Complicated
Just to share a little more of the weirdness (discovered while reading a couple of the historical URL &amp; URI RFCs several days ago):<p>Per the original spec, in FTP URLs,<p>- ftp:&#x2F;&#x2F;example.net&#x2F;foo&#x2F;bar will get you bar inside the foo directory inside the default directory of the FTP server at example.net (<i>i.e.</i> CWD foo, RETR bar);<p>- ftp:&#x2F;&#x2F;example.net&#x2F;&#x2F;foo&#x2F;bar will get you bar inside the foo directory <i>inside the empty string directory</i> inside the default directory of the FTP server at example.net (<i>i.e.</i> CWD, CWD foo, RETR bar; what do FTP servers even do with this?);<p>- and it’s ftp:&#x2F;&#x2F;example.net&#x2F;/foo&#x2F;bar that you must use if you want bar inside the foo directory inside the root directory of the FTP server at example.net (<i>i.e.</i> CWD &#x2F;foo, RETR bar; / being the result of percent-encoding a slash character).