Extension:HTTP302Found

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

Release status: stable

Description Forces an external HTTP 302 redirect instead of internal redirects
Author(s) Ian Weller (ianwellerTalk)
Last version 1.0 (Jun 18 2009)
MediaWiki 1.14+
License GPLv2+
Download Extension:HTTP302Found/Version 1.0
Hooks used
InitializeArticleMaybeRedirect

ArticlePageDataBefore

Check usage (experimental)

Contents

[edit] What can this extension do?

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).

[edit] Usage

Install and forget.

[edit] Download instructions

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.

[edit] Installation

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

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

[edit] Code

Language: English  • Русский
Personal tools
Namespaces
Variants
Actions
Site
Support
Download
Development
Communication
Print/export
Toolbox