This page documents an English Wikipedia editing guideline. Editors should generally follow it, though exceptions may apply. Substantive edits to this page should reflect consensus. |
| This page in a nutshell: Redirects aid navigation and searching by allowing a page to be reached under alternative titles. |


A redirect is a page that automatically sends readers to another page, usually an article or section of an article. For example, if you type "UK" in the search box or click on the wikilink UK, you will be taken to the article United Kingdom with a note at the top of the page (or on mobile, in a black message bar at the bottom): "(Redirected from UK)". This is because the page UK contains wikitext that defines it as a redirect page and indicates the target article. It is also possible to redirect to a specific section of the target page.
Redirect pages can contain other content below the redirect, such as redirect category templates, and category links (which provide a way to list article sections in categories).
Redirects are used to help people arrive more quickly at the page they want to read; this page contains guidance on how to use them properly. For technical help relating to how redirects work, . Other relevant pages are Wikipedia:Double redirects, Wikipedia:Hatnote § Redirect and WikiProject Redirect.
Reasons for creating and maintaining redirects include:
There are redirect templates to explain the reason for a redirect.
Note that redirects to other Wikimedia wikis, other websites, special pages, or direct file links (Media: namespace) do not work. These should be avoided or replaced with a {{soft redirect}} template. Soft redirects are also used in category space (using the {{category redirect}} template). Redirects from list titles to categories (e.g. a redirect from [[List of things]] to [[Category:Things]]) are highly discouraged.
To create a basic redirect using the source editor, type #REDIRECT [[target page name here]] as the only text on the page. The capitalization of the word REDIRECT doesn't matter. For instance, if you were redirecting from "UK" to "United Kingdom", this would be the entire body of the "UK" page:
#REDIRECT [[United Kingdom]]
If desiring to categorize the redirect, you may add redirect category templates (rcats) (optionally with the shell template) with each rcat on a separate line. For example:
{{Redirect category shell|
{{R to section}}
{{printworthy}}
}}
To create a redirect using the VisualEditor:
Redirects can also be automatically created when you move (rename) an existing page.
If you can't create pages, you can request redirects at Wikipedia:Redirect wizard.
Sometimes an existing redirect should really be handled by a full article, per Category:Redirects with possibilities. For example, the name of a notable musician (who does not yet have an article) may instead be a redirect to an existing article about a band of which the musician is a member. In this case, you can edit the redirect to make it into an article. Also, if an existing redirect points to the wrong page, you can edit the redirect to point to a different page.
If you want to edit a redirect page you must use a special technique in order to get to the redirect page itself. This is because when you try to go straight to the redirect page and edit it, the redirect page will automatically redirect you to its target page (because this is what a redirect page is meant to do). Below is an example of why you might need to go to a redirect page itself (to do a small edit) and how to actually get there.
For example, say Trygve Halvdan Lie did not have his own article, and so this link was a redirect to the page Secretary-General of the United Nations. If, later on, the page Trygve Lie was created as a biography, the page Trygve Halvdan Lie should be changed to redirect to Trygve Lie per WP:COMMONNAME. To do this, go to the redirect page by clicking the existing redirect note on the target page, which in this case would read "(Redirected from Trygve Halvdan Lie)". Once there, you may click the "Edit" tab, and change the page from
#REDIRECT [[Secretary-General of the United Nations]]
#REDIRECT [[Trygve Lie]]
When adding or changing a redirect, always verify the links that already point there. For instance, if another person named Trygve Lie becomes very well known, it would make sense to make Trygve Lie a redirect to his page (after renaming the existing Trygve Lie page). Such a change cannot be made without changing all the preexisting links to Trygve Lie; these links can be found by clicking on What links here in the left-hand menu. Also, when changing the target of a redirect verify that its talk page is not also a redirect and if it is, either retarget it to the current target's talk page, replace the redirect with {{talk page of redirect}} or if you turned the redirect into an article, remove it entirely unless WP:TALKCENT applies. If the redirect is connected to a Wikidata item (in which case it is a member of Category:Redirects connected to a Wikidata item), also verify that it makes sense to keep it connected to that item.
Most redirects are untargeted, i.e. they lead simply to a page, not to any specific section of the page. This is usually done when there is more than one possible name under which an article might be sought (for example, Cellphone redirects to the article Mobile phone). For deciding which should be the actual title of the article, .
It is also possible to create a targeted redirect, i.e. a redirect to a particular point on the target page—either a section header or an anchor. For example, the page Malia Obama contains the code #REDIRECT [[Family of Barack Obama#Malia and Sasha Obama]], which redirects to the Malia and Sasha Obama section in the article Family of Barack Obama. Therefore, entering Malia Obama will bring the searcher straight to the content that deals with "Malia and Sasha Obama".
Consider that when the target page is displayed, it is likely that the top of the page will not be shown, so the user may not see the helpful "(redirected from...)" text unless they know to scroll back to the top. This is less likely to cause confusion if the redirect is to a heading with the same name as the redirect.
It is usually appropriate to give a redirect-to-target article its own short description, otherwise search operations and wp:annotated links will display the description in place for the whole article. The {{short description}} line must immediately follow the #Redirect line.
A retarget in a redirect can either mean changing the page or changing the section that a redirect goes to. The term is used in redirects for discussion as an alternative to deleting it if the redirect can instead serve a purpose in targeting a different place in Wikipedia. The related term refine is used in RfD to mean retargeting a redirect to a specific section of its target page.
The text given in the link on a targeted redirect page must exactly match the target section heading or anchor text, including capitalization and punctuation.
For example, the Horsecart article may redirect to the Horse-drawn carts subsection of the Cart article by writing the destination as [[Cart#Horse-drawn carts]]. However, if (for example) someone in the future renames the Horse-drawn carts subsection to Carts drawn by horses or Horse-powered carts or anything else, the Horsecart redirect would break and instead go to the beginning of the Cart article.
To prevent this, it is recommended to use the {{subst:anchor}} template to create an explicit target anchor in the page. Anchors for section headings are ideally placed directly before the name of the heading, after the opening equals signs:
== {{subst:Anchor|Horsecart}} Horse-drawn carts ==
Now the Horsecart article may redirect to [[Cart#Horsecart]], and the redirect will not break if the Horse-drawn carts subsection is later renamed.
The {{subst:Anchor}} should be substituted in such cases because otherwise, when the section is edited via its own "[edit]" link, the anchor markup and alternative section title(s) will appear as undesirable clutter at the beginning of revision history entries, among other accessibility and technical issues.
The anchor text will not be visible on the page, but it will serve as a permanent marker of that place on the page. Editors should generally not remove or alter such anchors without checking all incoming links and redirects. If several logically independent aspects of a topic are discussed under a single section header and should be linked to, it is sometimes useful to define separate anchors for them, if the current amount of information doesn't justify a division into multiple sections already. This makes it easier to rearrange contents on a page as it develops since those anchors can be moved with their corresponding contents without a need to fix up incoming links.
Be careful with anchor capitalization, as redirects are case-sensitive in standards-compliant browsers.
Anchors may also be used to create a redirect to a point on the page other than a section heading. For example, in the Google Search article, the text {{Anchor|calculator}} is placed at the point where Google Calculator is discussed. The Google Calculator page can then be redirected to Google Search#calculator.
Alternatively, a hidden comment can be put in the target text, to inform other editors that a section title is linked, so that if the title is altered, the redirect can be changed. For example:
== Horse-drawn carts ==
<!-- "Horsecart" redirects here. -->
In the above example, where Horsecart redirects to [[Cart#Horse-drawn carts]], someone who is about to rename the Horse-drawn cart subsection could then also change the destination of the Horsecart redirect, preventing it from breaking. However, this is not ideal since it puts the workload on the editor seeking to change the section title.
When a section title is known to be the target of incoming links, the Wikipedia Manual of Style suggests creating a redundant anchor with the same name as the section title, so that such links will continue to work even if someone renames the section without creating an anchor with the old name. Technically, the redundant section and anchor names result in invalid HTML. However, when a document contains multiple tags with the same id value, browsers are required to return the first one, so in practice, this is not a problem.
References
The software will not follow chains of more than one redirect—this is called a double redirect. A redirect should not be left pointing to another redirect page.
Double redirects often arise after a page is moved (renamed)—after moving a page, check whether there are any redirects to the old title (using the link on the move result page, or using "What links here"), and change them to redirect straight to the new title. Double redirects are usually fixed by a few specialised bots in a few hours; however, an editor should not leave behind any self-created double redirects.
You can link to a redirect page just as you can link to an article page by placing the redirect page name within a set of double brackets, such as:
[[Redirect page name]]replacing Redirect page name with the name of the redirect page to link.
To link to a redirect page without following the underlying redirect, use: {{No redirect|Redirect page name}} replacing Redirect page name with the name of the redirect page to link. Clicking on a no-redirect link will send the reader to the redirect page rather than the final redirect destination.
Most redirect pages are not placed in article categories. There are three types of redirect categorization that are helpful and useful:
When a page is renamed/moved, a redirect that is titled with the replaced page name is created and is automatically tagged with the {{R from move}} template. This sorts the redirect into Category:Redirects from moves.
To delete a redirect without replacing it with a new article, list it on redirects for discussion. for details on how to nominate pages for deletion.
Listing is not necessary if you just want to replace a redirect with an article, or change where it points . If you want to swap a redirect and an article, but are not able to move the article to the location of the redirect, please use Wikipedia:Requested moves to request help from an admin in doing that.
The major reasons why deletion of redirects is harmful are:
Therefore consider the deletion only of either harmful redirects or of recent ones.
You might want to delete a redirect if one or more of the following conditions is met:
suppressredirect user right; available to page movers and admins), perform a round-robin move. If not, take the article to Requested moves.
However, avoid deleting such redirects if:
Just as article titles using non-neutral language are permitted in some circumstances, so are such redirects. Because redirects are less visible to readers, more latitude is allowed in their names, therefore perceived lack of neutrality in redirect names is not a sufficient reason for their deletion. In most cases, non-neutral but verifiable redirects should point to neutrally titled articles about the subject of the term. Non-neutral redirects may be tagged with {{R from non-neutral name}}.
Non-neutral redirects are commonly created for three reasons:
The exceptions to this rule are redirects that are not established terms and are unlikely to be useful, and therefore may be nominated for deletion, perhaps under deletion reason #3. However, if a redirect represents an established term that is used in multiple mainstream reliable sources, it should be kept even if non-neutral, as it will facilitate searches on such terms. Please keep in mind that RfD is not the place to resolve most editorial disputes.
Wikipedia follows the "principle of least astonishment"; after following a redirect, the reader's first question is likely to be: "Hang on ... I wanted to read about this. Why has the link taken me to that?" Make it clear to the reader that they have arrived in the right place.
Most (but not all) "inbound redirects" other than misspellings or other obvious close variants of the article title should be mentioned in the first couple of paragraphs of the article or section to which the redirect goes. It will often be appropriate to put the redirected term in bold at its first occurrence in the target. For example:
If other similarly titled pages exist, a hatnote may be placed at the top of the target article or targeted section that will direct readers to the other meanings or to a relevant disambiguation page. This is usually done using one of the redirect disambiguation templates .
It may also be helpful to search the list of categories for related terms.
Removing all content in a problematic article and replacing it with a redirect is common practice, known as blanking and redirecting. If other editors disagree with this blanking, its contents can be recovered from page history, as the article has not been deleted. If editors cannot agree, the content issues should be discussed at the relevant talk page, and other methods of dispute resolution should be used, such as restoring the article and nominating the article for redirection at Articles for deletion.
The article creator or significant contributors may be notified using {{uw-blar}}, if desired. To make it easier for other editors to find the history of the blanked article, a short notice may be added on the redirect's talk page using {{Blank and redirect notice}}.
The template {{R with history}} should be added to the resulting redirect. If the topic of the article can be reasonably thought to describe a notable topic, mark the redirect with the template {{Redirect with possibilities}} to indicate that it could be expanded in the future. You may also consider turning the article into a stub by removing all unsourced content and keeping the valid references, instead of blanking it.
Note that certain forms of blanking are not allowed.
Illegitimate blanking of valid content without reason is considered vandalism. Other forms of blank-and-redirect, although not vandalism, are still undesirable. If you want to rename the article to a different title, you should instead move the page with the Move option. If you want to keep some content from the blanked article and add it to another article, you should follow the instructions at Wikipedia:Merging § How to merge. Both processes will create proper links to the edit history, which is required by the Wikipedia license to preserve attribution of content to its authors.
There is usually nothing wrong with linking to redirects to articles. Some editors are tempted, upon finding a link to a redirect page, to bypass the redirect and point the link directly at the target page. However, changing to a piped link is beneficial only in a few cases. Piping links solely to avoid redirects is generally a time-wasting exercise that can actually be detrimental. It is almost never helpful to replace [[redirect]] with [[target|redirect]].
That is, editors should not change, for instance, [[Franklin Roosevelt]] to [[Franklin D. Roosevelt]] or [[Franklin D. Roosevelt|Franklin Roosevelt]] just to "fix a redirect". However, it is acceptable to change it to [[Franklin D. Roosevelt]] if it is preferred that "Franklin D. Roosevelt" actually appear in the visible text. Editors should also not change redirects with possibilities like [[Journal of the Franklin Institute]] to [[Franklin Institute#Journal of the Franklin Institute|Journal of the Franklin Institute]], so that readers arrive at the more pertinent article in the eventuality that it is created.
Reasons not to bypass redirects include:
Good reasons to bypass redirects include:
Avoid linking to titles that redirect straight back to the page on which the link is found. This situation may arise if a redirect is created from a red link on the page, or if the title was once a separate page but was merged.
However, linking to a title that redirects to a section or anchor within the article (redirects with {{R to section}} or {{R to anchor}}) is acceptable, as it facilitates navigation, in particular on long articles that cannot be viewed all at once on an average-sized computer screen. In addition to readability benefits, when such redirects are marked with {{R with possibilities}}, they have the potential to become independent articles in the future. However, consider using section links instead, when such redirects do not already exist.
A template can be redirected to another template in the same way, e.g., by entering the following markup at the top of a template T2:
#REDIRECT [[Template:T1]]
This allows the template name T2 to be used instead of the actual template name T1. All the parameters of T1 will be respected by T2.
A redirect categorisation (rcat) template such as {{R from move}} may be added to T2 (on the third line below the #REDIRECT line) as follows:
#REDIRECT [[Template:T1]]
{{Redirect category shell|
{{R from move}}
}}
While template shortcut/alias redirects are common, they may infrequently cause confusion and make updating template calls more complicated. For example, if calls to T1 are to be changed to some new template NT1, articles must be searched for {{T1}} and a separate search must also be made for each of its aliases (including T2 in this example). Moreover, changes to syntax, corrections, scans and other processes (for example tag dating) must take into account all applicable redirects.
Sometimes redirects to controversial topics are fully or semi protected indefinitely. This is done when any of the following criteria are met:
Redirects that are protected include Obama, Hitler, and 9/11. Soft redirects that are protected include obvious vandalism targets like dumbass.
Redirects in other namespaces may be protected for technical reasons or are protected under existing guidelines. For example, a template redirect (shorthand) used thousands of times qualifies it as a highly visible template eligible for template protection.
Do not create inter-category redirects by adding #REDIRECT [[Target page]] to a category page. Unlike when renaming articles, categories cannot be redirected using "hard" redirects. Articles added to a redirected category will not show up in the target category. And since redirected categories do not become "red links", editors will not be aware when they add an article to a redirected category.
Instead, a form of "soft redirect" may be used in limited circumstances. You can create a category redirect by adding {{Category redirect|target}} to the category page. Bots patrol these categories and move articles to the "target" of the redirect.
If you need to add a redirect category to a {{Category redirect}}, use the template's second parameter. For example: {{Category redirect | Years of the 19th century in Ceylon | {{R from category navigation}} {{R from template-generated category}} }}
Category redirects are costly. While placing a page in a category redirect is not a big problem, it is a problem. There are plenty of helpful uses of category redirects, but category redirects are not as cheap as regular redirects. Links to article redirects are not broken: i.e. click on the link and you are automatically redirected to its target. However, links to category redirects are broken and need to be fixed, except when resolved by a template (i.e. the template generates categories using a pattern, and some of the resulting category names are intentionally resolved by the use of {{Resolve category redirect}} within the template, as in the Ceylon example above). Placing a page into a category redirect makes it show up in the category redirect – not its target – until a bot comes along and fixes the link.
It is possible to redirect a module, however it uses a different syntax. To redirect Module:A to Module:B, add the line return require [[Module:B]] to Module:A. For Cross-namespace redirects from module space like redirecting Module:Example to Template:Example, change the content model to wikitext and use the regular syntax #REDIRECT [[Template:Example]] on the module page.
When a page is moved, a redirect is automatically left behind. Some groups of users (those who possess a suppressredirect right) have the ability to prevent the redirect being created, by unchecking the box labelled "Leave a redirect behind." Currently these groups are administrators, bots, page movers, and global rollbackers. In some circumstances, a page should be moved, but a redirect from its current name is inappropriate, such as reverting page-move vandalism. Suppressing the redirect can avoid an extra action (page removal) and save time in these cases.
However, in general, the redirect will be a useful entry in the history, and it is best to leave it behind, unless there is a good reason to suppress the redirect, such as vandalism, userfying recently created malplaced items or freeing a title to be occupied immediately by another page (e.g., moving term to accurate term and term (disambiguation) to term). Redirects leave a trail to help readers find the old article, in case a new article is created at its previous location, and to prevent linkrot. Therefore, we usually neither suppress nor delete redirects. As Brooke Vibber said, "Not breaking links helps everyone, especially us first and foremost". She also said that the removal of (file) redirects is "extremely user-hostile and makes the project less useful".
Some types of pages (such as user JSON pages) do not support redirects, as a result, if such a page is moved by any user, page mover or not, a redirect will not be left behind.
A Wikipedia redirect is not the same as an HTTP redirect—it does not generate an HTTP 302 (or other 30x) response. Instead, a page with almost the same content as the target of the redirect is generated by the MediaWiki software, differing in that a small-text note appears below the title of the page, identifying the name of the redirect used to get there (and linking to it in such a way that it can be accessed without the redirect, e.g. so it can be changed). When a user clicks on a redirect such as housecat, the page URL initially will be https://en.wikipedia.org/wiki/Housecat, but the URL shown by the browser will change to https://en.wikipedia.org/wiki/Cat after the page loads.
On one hand, this allows links like housecat#Characteristics to work as expected, but it also requires redirects to anchors to be implemented as a piece of JavaScript that jumps to an appropriate section after the page has loaded. For example, second-stage boot loader, which is rendered as the URL https://en.wikipedia.org/wiki/Second-stage_boot_loader, is a page defined as a #REDIRECT to Booting#SECOND-STAGE. "SECOND-STAGE", in this case, is a manually defined {{anchor}} (using the markup "=== {{subst:anchor|SECOND-STAGE}} Second-stage boot loader ===") that will persist even if the section is renamed. However, whether a redirect points to a manually defined anchor, or an anchor defined implicitly via a section name, the behavior will be the same: the page will automatically be scrolled down to the pointed-to anchor only after the page finishes loading (at which point the URL bar will also change to reflect the redirected-to URL, including "#anchor" portion, rather than the redirected-from URL).
[m]ost users believe that AfD should be used to settle controversial or contested cases of blanking and redirecting.