Knowledge Base - FAQ

Question: How do I setup pretty URLs in MediaWiki on Kattare

In 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


Select a category
Search:

Kattare is Trustwave Certified and Safe Harbor Certified | Rated Safe For Kids by ICRA | All Rights Reserved Worldwide
Copyright © 1997 - 2012 Kättare Internet Services | Processed in 0.012 seconds by webmail in Corvallis, Oregon