Usually, the rewrite rule RewriteRule ^wiki(.*)$ w/index.php$1 [L] or similar is recomended, used in the directory containing "w".
This would rewrite /wiki to /w/index.php, /wiki/ to /w/index.php/, and /wiki/Main_Page to /w/index.php/Main_Page.
You would need to enable PATH_INFO for this to work. Also, if you're using anything like (in my case), /wiki5, you would need to put that _before_ the one above, otherwise it rewrites /wiki5 to /w/index.php5.
Make sure script path is /w..., not /wiki.
On 6/16/05, Rick DeNatale rick.denatale@gmail.com wrote:
On 6/16/05, Brion Vibber brion@pobox.com wrote:
I would strongly recommend removing the Alias definitions and all those rewrite rules and replacing them with something straightforward like:
RewriteRule ^/wiki/(.*)$ /w/index.php?title=$1 [L,QSA]
Thanks,
I realized that I was trying to build a hack on a hack. I'd hacked something before with rewrite to get 'nice' urls which strayed from other how-tos because I'd installed in wiki instead of w.
So I backed off, and renamed LocalSettings.php and "reinstalled" 1.4.5. I now have everything working except rewriting an empty uri. I have several name based virtual hosts and would like one of them to rewrite an empty uri to /wiki/Main_Page and then do a local rewrite to /w/indec.php?title=Main_Page
That's the last part that I can't seem to get working. _______________________________________________ MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l