当前版本的MediaWiki的首页可通过
http://www.example.com/wiki/index.php/Main_Page
而不是旧版本的
http://www.example.com/wiki/index.php?title=Main_Page
RewriteRule ^/index.php/(.*)$ /index.php?title=$1
但是默认的MediaWiki设置中没有htaccess文件。那么他们是如何进行重定向的?
不确定这是否是他们正在做的,但是没有必要使用.htaccess重定向。页面索引.php找到的脚本是什么。索引.php只需获取$\u SERVER['REQUEST_URI']并将其解析为查询字符串。
http://httpd.apache.org/docs/2.0/mod/core.html#acceptpathinfo