On 7/5/06, Ben Bullock <benkasminbullock(a)gmail.com> wrote:
On 05/07/06, Giovanni Putignano
<gputignano(a)tiscali.it> wrote:
> > RewriteRule ^wiki/?(.*)$ /w/index.php?title=$1 [L,QSA]
Personally, I've come to enjoy using Aliases instead of Rewrites.
Besides being much simpler than rewrites, aliases seem to work much
better with special characters than rewrites do. Just need to make
sure mod_alias is enabled, but it should be by default, IIRC, since
Apache uses quite a few aliases of its own.
My install as the MediaWiki software in /www/w. I access it via a URL
of
http://myhost/wiki/.
In httpd.conf:
Alias /wiki/ /www/w/index.php/
Alias /wiki /www/w/index.php/
In LocalSettings.php:
$wgScriptPath = "/w";
$wgArticlePath = "/wiki/$1";
Dan