Wikipedia:Protocol-relative URL

From Wikipedia, the free encyclopedia


In June 2015, Wikipedia did a "hard enable" of HTTPS meaning the site is 100% HTTPS. Because protocol relative is relative to the site where the URL is linked from, all protocol relative URLs on Wikipedia will render as HTTPS.

This means protocol relative links should no longer be used on Wikipedia, and existing protocol relative links should be converted to either the HTTP or HTTPS scheme. Existing protocol relative links where the underlying is http will break. For example this doesn't work:

[1] (//

But this does:

[2] (


A protocol-relative URL (PRURL) is the method for linking to a website that offers both HTTP and HTTPS, while HTTPS links should be used for HTTPS-only websites and HTTP links should be used for sites that don't support HTTPS at all.[1] For example, the Internet Archive supports both protocols and thus a PRURL could be used when linking to the site. A PRURL automatically uses either HTTP or HTTPS depending on the user's browser settings.


*[// Internet Archive]

In citation templates, whether Citation Style 1 or Citation Style 2, protocol-relative URLs may be entered as |url=//

In print[edit]

Protocol-relative URLs only make sense in hyperlinks in webpages. Once printed on paper, they are no longer protocol-relative. In other words, when a person reads // from the paper and types it in a web browser, the browser has no preceding protocol to mimic. In Internet Explorer 11, Firefox and Google Chrome on Windows, the browser always assumes HTTP.

Previous discussions and links[edit]

Policy discussions