The NamespacePaths extension extends custom article paths to allow namespaces to be mapped to extra paths separate from the article path. For example mapping the help namespace to /help/$1
so pages like "Help:Contents" go to /help/Contents
.
NamespacePaths
folder to your extensions/
directory.cd extensions/ git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/NamespacePaths
wfLoadExtension( 'NamespacePaths' );
$wgNamespacePaths
with the paths you want to use for namespaces, the key is the namespace id (you can use the NS_ constants), and the value is a $wgArticlePath
style string like "/help/$1".⁄index.php?title=$1
, doing so will break the paths. If you just make sure that ⁄index.php
is run for these extra article paths as long as your webserver sets REQUEST_URI
correctly the extension will take it from there and extract the correct title on it's own.
To users running MediaWiki 1.39 or earlier:
The instructions above describe the new way of installing this extension using wfLoadExtension()
. If you need to install this extension on these earlier versions (MediaWiki 1.39 and earlier), instead of wfLoadExtension( 'NamespacePaths' );
, you need to use:
require_once "$IP/extensions/NamespacePaths/NamespacePaths.php";
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