Wikipedia:Protocol-relative URL
Appearance
This is an essay. It contains the advice or opinions of one or more Wikipedia contributors. This page is not an encyclopedia article, nor is it one of Wikipedia's policies or guidelines, as it has not been thoroughly vetted by the community. Some essays represent widespread norms; others only represent minority viewpoints. |
A protocol-relative URL (PRURL) is the preferred method on Wikipedia when a website offers both HTTP and HTTPS, for example Internet Archive and YouTube. A PRURL is a method that automatically uses either HTTP or HTTPS depending on the user's browser settings.
Example:
- *[//archive.org Internet Archive]
- generates
Previous discussions and links
Policy discussions
- Wikipedia:Village pump (policy)/Archive 111#PRL (Original consensus discussion. 17 January 2014)
- Wikipedia:Village pump (technical)/Archive 123#How should external protocol-relative links be implemented.3F (Follow-up on how to implement. 23 January 2014)
- Wikipedia:Village pump (policy)/Archive 115#Protocol Relative URLs (Follow-up on Internet Explorer issues. 18 September 2014)
Information