Snippets:Short URL
Jump to navigation
Jump to search
Short URL
To shorten the URL requires commands in the .htaccess file which match a configuration in the LocalSettings.php file.
Source: https://www.mediawiki.org/wiki/Manual:Short_URL/wiki/Page_Title_--_.htaccess
The matching configuration in LocalSettings.php is:-
$wgScriptPath = "/w"; $wgArticlePath = "/wiki/$1";
The result is a 'Short URL'.
This will suit most installations of MediaWiki, and is therefore most common - MediaWiki-based websites usually have /wiki/ in the URL.

