[Pkg-mediawiki-devel] Crufty URL proposed solution

Ashar Voultoiz hashar at altern.org
Fri Sep 23 06:56:31 UTC 2005

Kai Hendry wrote:
> I'm happily using this method:
> http://meta.wikimedia.org/wiki/Eliminating_index.php_from_the_url#Using_a_rewrite_rule_in_a_.htaccess_file
> Though, without the /w stuff. So the rewrite looks like:
> RewriteRule ^wiki/?(.*)$ /index.php?title=$1 [L,QSA]
> How about including a .htaccess in the package?

Or use apache aliases. On my computer I got mediawiki installed in

Apache conf:

Alias /wiki/images      /var/www/mediawiki-cvs/images
Alias /wiki/skins       /var/www/mediawiki-cvs/skins
Alias /wiki/index.php   /var/www/mediawiki-cvs/index.php
Alias /wiki             /var/www/mediawiki-cvs/index.php

$IP = '/var/www/mediawiki-cvs';
$wgScriptPath = '/mediawiki-cvs';
$wgScript = '$wgScriptPath/index.php';
$wgArticlePath = '/wiki/$1';
// Style
$wgStylePath = $wgScriptPath.'/skins';
$wgStyleDirectory = $IP.'/skins';
// Upload
$wgUploadPath       = $wgScriptPath.'/images';
$wgUploadDirectory  = $IP.'/images';


Ashar Voultoiz - WP++++
IM: hashar at jabber.org  ICQ: 15325080

More information about the Pkg-mediawiki-devel mailing list