GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||
GeezerVison is showing www.mediawiki.org — Extension:ExternalRedirect - MediaWiki
The ExternalRedirect extension allows to create redirects to external pages in wiki. Use this extension only on write-protected wikis/namespaces! Abuse of this extension poses security risk.
UsageA new parser function externalredirect with URL as first and only parameter is registered. Place something like this on wiki page to make it redirect to external site:
This allows, for example, to add external links to Categories (by placing pages with externalredirect in them). Installation
ConfigurationPopulate this array with NUMERIC namespace IDs where external redirection should be allowed. Only allow on write-protected namespaces! See Manual:Namespace for more info on namespaces and numeric IDs. This example allows redirects from help pages (12) and pages from custom namespace with numeric ID 500. $wgExternalRedirectNsIDs = array( 12, 500 ); Populate this array with page names (see magic word $wgExternalRedirectPages = array( 'Teapot Dome scandal', 'Warren G. Harding' ); The extension will redirect pages that are in the namespace(s) specified in
$wgExternalRedirectURLRegex = '/^https\:\/\/www\.mediawiki\.org\//i'; If
$wgExternalRedirectDeniedShowURL = false; SecurityThis extension is meant for usage only on write-protected wikis/namespaces/pages. Here is an example how to add a name space editable only by the sysops. In "LocalSettings.php": require_once "$IP/extensions/ExternalRedirect/ExternalRedirect.php"; define("NS_MOVED", 500); $wgExtraNamespaces[NS_MOVED] = "Moved"; $wgNamespaceProtection[NS_MOVED]=array('redirector'); $wgNamespacesWithSubpages[NS_MOVED]=false; $wgGroupPermissions['sysop']['redirector']=true; $wgExternalRedirectNsIDs = array(NS_MOVED); With version 1.0.2 there is introduced basic URL validation (using In version 1.2.0 | ||||||||||||||||||||||
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. | ||||||||||||||||||||||