HTTPS Conversion Guide
rating: +27+x

Per the Technical Content Policy, all links on-site should be HTTPS, and fixing them is considered an allowable edit, in the same vein as typos. However, due to Wikidot limitations, it's possible to accidentally create links which are invalid, leading to poor user experience when individuals encounter them. This guide aims to clarify how exactly links should be HTTPS-ized.

Domains

The site has three domains which refer to the EN SCP Wiki:

  • scp-wiki.net
  • scpwiki.com
  • scp-wiki.wikidot.com

The first is the old, deprecated domain which was previously used until the official domain was changed to scpwiki.com following a staff discussion. These should always be replaced.

The second is our current, official domain. It is always acceptable to use this in links, provided it is HTTPS (i.e. https://scpwiki.com/). However, because of Wikidot's limitations surrounding HTTPS, for now this redirects to the Wikidot domain.

The third is Wikidot's domain, https://scp-wiki.wikidot.com/. As mentioned, this is currently in use because Wikidot only supports HTTPS for subdomains (i.e. *.wikidot.com). These are also acceptable to use, but for formal public-facing contexts (e.g. announcements by IO), the official domain should be preferred.

Links

Wikidot, annoyingly, has two kinds of links:

Triple-bracket links permit specifying a local page just via its slug. It comes in the format [[[page-slug-name | Link label]]], however, if the label is the same as the slug (after normalization), you only need to specify that. For instance: [[[SCP-1000]]], or [[[Site Rules]]]. These local links should be preferred for pages on the main site. These are the only kinds of links which appear in backlinks, and also preserve the current domain and protocol.

Single-bracket links are needed for absolute URLs, such as forum links, pages with parameters (e.g. offset pages), on other Wikidot sites, or elsewhere on the internet. These take the form [https://en.wikipedia.org/wiki/SCP_Foundation SCP Foundation]. (Note the lack of pipe between the link and the label)

The latter are useful for relative links on the same site, by removing the domain part of the URL. For instance an offset link (e.g. https://scp-wiki.wikidot.com/scp-4447/offset/1) can be expressed simply as /scp-4447/offset/1. Similarly for forum threads: /forum/c-1113520/announcements.

So for these:

  • The link [https://scp-wiki.wikidot.com/scp-4447/offset/1 Next revision] would become [/scp-4447/offset/1 Next revision].
  • The link [https://scp-wiki.wikidot.com/forum/c-1113520/announcements Announcements] would become [/forum/c-1113520/announcements Announcements].

Files

Like links, file URLs may also need to be converted. This is especially pertinent, since many browsers warn or block resources loaded over HTTP if you are using an HTTPS connection. Thankfully, all wdfiles.com (where Wikidot stores its files) URLs support HTTPS, even if the main site doesn't have it enabled.

The easiest way to get the proper (wdfiles.com) link for a file is to open it in a new tab, and copy the URL that you are redirected to, and ensure it is HTTPS. An example of such a URL is https://scp-wiki.wdfiles.com/local--files/scp-001/fractal-mka.jpeg (note the wdfiles.com domain).

Code

Similar to files, you should prefer the wdfiles.com link for code. Instead of https://scpwiki.com/component:theme/code/1, use https://scp-wiki.wdfiles.com/local--code/component%3Atheme/1. (You can access this easily by visiting the URL and having it do its redirection)

Note that, per the CSS Policy, use of @import for themes is disallowed, instead [[include]] should be used instead. @import is only permitted for HTML blocks or other non-Wikidot contexts.

Word of Warning

Some URLs, despite being HTTPS, are not valid. Please be careful to not create these, as they do not work and instead the reader's browser will show them a very scary warning.

  • https://scp-wiki.net
  • https://www.scp-wiki.net
  • https://www.scp-wiki.wikidot.com

Only scpwiki.com and scp-wiki.wikidot.com (with nothing in front of it) are valid for HTTPS.

If you see any of these invalid links on a page, please change them.

Converting to HTTPS

The questions you should ask yourself when seeing a links are:

  • Can this be expressed as a local, triple-bracket link? (e.g. a link to SCP-1000)
  • Can this be expressed as a relative link? (e.g. a link to an offset page or forum thread)
  • Is this a link to a different Wikidot site? In this case you probably need to leave it as-is. (e.g. a link to O5 Command)
  • If this is an external link, is it HTTPS? Any modern website will support HTTPS. (e.g. a link to Google or Wikipedia)

With all of this background, here is a reference reference of example bad inputs, and what to change them to.

Original Replacement
[http://scp-wiki.net/scp-1000 SCP-1000] [[[SCP-1000]]]
[[[http://scpwiki.com/scp-1000|SCP-1000]] [[[SCP-1000]]]
[http://scp-wiki.net/scp-173 a particular statue] [[[scp-173 | a particular statue]]]
[http://scp-wiki.net/scp-4447/offset/1 Next page] [/scp-4447/offset/1 Next page]
[http://scp-wiki.net/forum/t-1016035/help-i-made-a-thread-here Forum Help] [/forum/t-1016035/help-i-made-a-thread-here Forum Help]
[[image http://scpwiki.com/local--files/scp-001/fractal-mka.jpeg]] [[image https://scp-wiki.wdfiles.com/local--files/scp-001/fractal-mka.jpeg]]
http://scp-wiki.net/some-page/code/1 https://scp-wiki.wdfiles.com/local--code/some-page/1
http://scp-wiki.wikidot.com/some-page/code/2 https://scp-wiki.wdfiles.com/local--code/some-page/2
[http://google.com/ Search] [https://google.com/ Search]
[http://05command.wikidot.com/site-charter Site Charter] Leave as-is (off-site)

You can also use this substitution tool to help you.

If you have any questions, feel free to consult the Technical Team.

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License