Just guessing, but it might be that the first rule, a redirect, is
interfering with the second one, since you don't have [L] for it. The
rules I got to work are:
# this makes ugly URL's into pretty ones; if matched, don't do next one
RewriteRule ^wiki/?(.*)$ /mw/index.php?title=$1 [L,QSA]
# this sends plain wiki URL to main page, in case user is looking for
index
RewriteRule ^wiki/?$ /mw/index.php?title=Main_Page [L]
Also, once I was done messing around with my rules, I had to empty
the wiki objectcache table to get the internal links to be correct,
as well as clearing my browser cache.
Michelle
On May 16, 2006, at 7:26 AM, Hugh Prior wrote:
.htaccess is as follows:
------------------------------------------------------
php_flag register_globals off
RewriteEngine on
RewriteRule ^/$ /wiki/Main_Page [R]
RewriteRule ^wiki/?(.*)$ /mw/index.php?title=$1 [L,QSA]
------------------------------------------------------
In LocalSettings.php I have set:
$wgArticlePath = "/wiki/$1";