[Mediawiki-l] Redirect

Philip Beach beachboy4231 at gmail.com
Sun Jun 15 03:08:15 UTC 2008

Hello all,

I need to redirect everyone who accesses mywiki.com or mywiki.com/page to
mywiki.com/wiki or mywiki.com/wiki/page.

Here is the Apache mod rewrite I wrote that almost does what I want:

RewriteRule ^([A-Za-z]+)$ /wiki/$1/ [R]

However, that only works with one word pages that are alphabetical (no
numbers or any other symbols). Can anyone tell me the best way to make this
do what I want? Is mod rewrite the best method to use?


More information about the MediaWiki-l mailing list