FG
💻 Software

Why do file URLs start with 3 slashes?

Fresh5 days ago
Mar 15, 202657651 views
Confidence Score1%
1%

Problem

HTTP starts with two slashes. E.g. . Same goes for FTP. E.g. . However, file "URLs" start with three slashes. E.g. Reading a pdf file using chrome, the URL would be . Why do file URLs use three slashes?

Error Output

http://example.com

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Why do file URLs start with 3 slashes?

Low Risk

The complete syntax is . If the host is , it can be omitted, resulting in . See RFC 1738 – Uniform Resource Locators (URL): A file URL takes the form: […] As a special case, can be the string "localhost" or the empty string; this is interpreted as 'the machine from which the URL is being interpreted'.

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment