Jump to content

Wikipedia:Protocol-relative URL

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Tony Tan (talk | contribs) at 14:08, 20 April 2015 (Please don't undo the entire edit if you don't have to. I am going to start a discussion on talk page.). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

A protocol-relative URL (PRURL) is the preferred method on Wikipedia for linking to a website that offers both HTTP and HTTPS.[1] One example is the Internet Archive. A PRURL automatically uses either HTTP or HTTPS depending on the user's browser settings.

However, HTTPS links should be used for HTTPS-only websites, and HTTP links should be used for sites that don't support HTTPS at all.

Example:

*[//archive.org Internet Archive]
generates

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

Policy discussions

Information

References