Knowledge Base - FAQ
Question: How do I setup pretty URLs in MediaWiki on KattareIn your MediaWiki install directory put a .htaccess with the following content:
RewriteEngine on RewriteRule ^index.php$ index.php [L,QSA] RewriteRule ^/?([^\/]+)$ index.php?title=$1 [L,QSA]
Then, in LocalSettings.php in the wiki install directory, make sure the setup matches up with the following:
$wgScriptPath = "/my/mediawiki";
$wgScript = "$wgScriptPath/index.php";
$wgRedirectScript = "$wgScriptPath/redirect.php";
$wgArticlePath = "$wgScriptPath/$1";
Where the URL path to your wiki is /my/mediawiki.You can then access your wiki at something like:
http://www.mydomain.com/my/mediawiki/Main_Page
Last Modified: Nov 15, 2010




