Manual talk:Short URL/wiki/Page title -- Apache rewrite--root access
From MediaWiki.org
[edit] User:MatiasMoreno
Hi, I don't know if someone reads the MediaWiki discussion pages, as this one is empty, but I wanted to notice something on this page:
For the rewrite rule, ^wiki/(.*)$ /w/index.php?title=$1 is suggested.
This tells mod_rewrite to search for any URL starting with the word "wiki/", however it should be instructed to search for "/wiki/" instead, which can be achieved with the following rule: ^/wiki/(.*)$ /w/index.php?title=$1.
Another rule is suggested in the page: /wiki/(.*)$ /w/index.php?title=$1. Such rule has one inconvenience: it will try to rewrite things such as: /some_stuff/wiki/other_stuff which I suppose is not the intended behavior.