Redirects
Redirects are a way to forward related page titles to another page. For example, the Redirect page redirects to this page! You can view the redirect page by adding ?redirect=no
to the end of its URL (where the URL structure is /wiki/Redirect
).
There is no harm in having redirects. If you have an article named United States, you can create redirects for USA, US, usa and different variations so that if someone types the word differently, they can get redirected to the United States article. Create redirects to help users; the SearchDigest extension can be used to see what queries users are searching for that may need redirects.
How to redirect
To create a redirect, create a new page as you normally would (or remove the content from an existing page if you are merging pages). After that, just insert #REDIRECT [[Page name]]
into the page. A quick way to do this with the 2010 wikitext editor is to click Advanced and insert a redirect by clicking the icon for it.
A redirect page can have additional content, such as a notice about the redirect's purpose or any relevant categories; however, the #REDIRECT
code must be on the first line of the page's source. There can be no content before it, or the redirect will not work.
How to redirect to external wikis
Head to Special:Interwiki and press "Add a local interwiki or language prefix". Example:
- Prefix: tgc
- URL:
https://terraria.wiki.gg/wiki/$1
- Forward: Yes and Transclude: Yes
- Place
#REDIRECT [[tgc:Monoliths]]
on a page
Fixing double redirects
A double redirect is a page redirecting to a page that is itself a redirect, and it will not work. Instead, users will be presented with a view of the next redirect page. This is a deliberate restriction, partly to prevent infinite loops and partly to keep things simple.
However, you could look out for double redirects and fix them by changing them to be 1-step redirects instead. You are most likely to need to do this after a significant page move. Use the "what links here" toolbox link to find double redirects to a particular page, or use Special:DoubleRedirects to find them throughout the whole wiki.
Fixing broken redirects
If the target page does not exist, then the redirect is broken, and redirection will not occur. You can find any broken redirects you may have at Special:BrokenRedirects .