Extension:HTTP302Found

From MediaWiki.org
Jump to navigation Jump to search
Other languages: English  • русский

MediaWiki extensions manual
Crystal Clear action run.svg
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.

What can this extension do?[edit]

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]

Install and forget.

Installation[edit]

  • Add the following code at the bottom of your LocalSettings.php:
    require_once "$IP/extensions/HTTP302Found/HTTP302Found.php";
    
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Code[edit]