A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:$wgDebugRedirects below:

Manual:$wgDebugRedirects - MediaWiki

Displays redirect location instead of actually redirecting to the target URL
Introduced in version: 1.3.0 Removed in version: Still in use Allowed values: (boolean) Default value: false

This appears to help you know when a redirect is happening. If you set this to a value in your LocalSettings.php , then any time a "redirect" happens, you get stopped at the point the redirect begins by ending on a page that simply says "Location: " and after that is the URL that you are being sent to. It does not do the redirect automatically.

This setting is for debugging HTTP redirects. This does not affect normal article redirects. (An example of a redirect it would affect would be capitalizing the first letter of an article, or localizing a special page name, provided you accessed the non-canonical form directly from a URL.)

If you search for $wgDebugRedirects in the source code, and don't find it, try searching for $config->get( 'DebugRedirects' ), which occurs in includes/OutputPage.php (at least in MediaWiki 1.28).


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4