* Andrew Garrett agarrett@wikimedia.org [Wed, 24 Feb 2010 22:33:26 +1100]:
On 24/02/10 8:19 PM, Dmitriy Sintsov wrote:
- Evgeny Fadeevevgeny.fadeev@gmail.com [Mon, 22 Feb 2010 12:23:20
-0800]:
Hello,
here is what I would like to accomplish:
somesite.net/<namespace>/<page_name[/subpage]>[?optional
parameters]
Is there a way to achieve that?
You should do this with rewrite rules. MediaWiki expects a properly-formed MediaWiki title to come in on the 'title' GET/Post parameter. You will need to rewrite /namespace/page_name to ?title=namespace:page_name, and you will need to handle the case where there is no namespace.
He needs to distinguish the 'namespace/pagename' from 'pagename/subpage' thing. So, the main namespace probably has always to be specified in the form of 'Main/Page/Subpage'. Also, optional parameters via '?' query string doesn't make such URL's SEO-friendly. And, also, he probably has to rewrite parts of Linker, too, to generate such links from article wiki-links. Dmitriy