File URI scheme: Difference between revisions

Content deleted Content added
Tags: Mobile edit Mobile web edit
Line 10:
 
==Number of slash characters==
* The character sequence of two slash characters (//)) after the string ''file:'' denotes that either a hostname or the literal term ''localhost'' follows,<ref>RFC 8089, Section 2</ref> although this part may be omitted entirely, or may contain an empty hostname.<ref>RFC 3986, Section 3.2.2</ref>
* The single slash between '''''host''''' and '''''path''''' denotes the start of the local-path part of the URI and must be present.<ref>RFC 3986, Section 3.3</ref>
* A valid file URI must therefore begin with either <code>file:/path</code> (no hostname), <code>file:///path</code> (empty hostname), or <code>file://hostname/path</code>.