Manual:Redirects

From MediaWiki.org
Jump to navigation Jump to search

A redirect is a page that contains a line such as: #REDIRECT [[Sandbox]].

Such pages serve as "symbolic links" to their target page; in most contexts referring to the redirect page (linking to it, using it as a template, using it as a file name etc.) will have the same result as referring to the target page.

Database[edit]

Redirects are recorded in the redirect table.

Configuration[edit]

Configuration settings relevant to redirects include:

Double redirects[edit]

There are several ways to fix double redirects. fixDoubleRedirects.php is a maintenance script that fulfils that purpose. $wgFixDoubleRedirects is a configuration setting that can take care of such redirects as they are created, but it is only suitable for use on a private wiki because page move vandalism causes problems when it is set to true.

Code stewardship[edit]

See also[edit]