Extension:HTTP302Found

From MediaWiki.org
Jump to: navigation, search
MediaWiki extensions manual
Crystal Clear action run.png
HTTP 302 Found

Release status: beta

Description Forces an external HTTP 302 redirect instead of internal redirects
Author(s) Ian Weller (ianweller)
Patrick Uiterwijk (puiterwijk)
Latest version 2.0 (Aug 12, 2012)
MediaWiki 1.19+
License GPLv2+
Download Version 2.0
Hooks used
ArticleViewRedirect

Translate the HTTP302Found extension if it is available at translatewiki.net

Check usage and version matrix; code metrics

What can this extension do?[edit | edit source]

Pushes a HTTP code 302 (Found) to the browser when there is a redirect instead of handling it internally. The end user will not notice any difference (other than the address to the page having an ?rd=Redirecting_page bit at the end).

Usage[edit | edit source]

Install and forget.

Download instructions[edit | edit source]

Please select the version you want below and copy and paste the resulting code in $IP/extensions/HTTP302Found/HTTP302Found.php. Note: $IP stands for the root directory of your MediaWiki installation, the same directory that holds LocalSettings.php.

Installation[edit | edit source]

To install this extension, add the following to LocalSettings.php:

require_once("$IP/extensions/HTTP302Found/HTTP302Found.php");

Code[edit | edit source]

Language: English  • русский