Documentation
Kattare is dedicated to making your hosting experience as painless as possible.
That means making as much help and documentation available as possible.
If you have a question that you think would be helpful to have here, please
[Submit your Question].
|
|
| Category |
| PHP Programming |
|
Question
|
Last Modified: Aug 28, 2006
|
| How do I setup pretty URLs in MediaWiki on Kattare |
| Answer |
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
|
[FAQ Main]
[Submit a Question]
[Back to Category "PHP Programming"]
|