Hello and thanks for the feedback!
so to "package" urls like so
site.net/<namespace>/<title[/subpage][?params]
there are two parts that need to be done:
1) have MW somehow respond to these urls 2) output urls in that format
For 1) it can be done either by (a) modifying MW url processor and (b) - by rewrite rules - not sure here how to handle a case of no namespace - I guess that with no namespace it will be maybe simpler to insert "main" namespace explicitly
For 2) you'll either have to (a) post-process all MW output through some filter outside MW (b) modify the "url renderer" inside MW
Where should I look inside MW code to find incoming url parser and url renderer?
I'll appreciate any suggestions, will post a patch on github too.
Evgeny.
* Evgeny Fadeev evgeny.fadeev@gmail.com [Wed, 24 Feb 2010 09:30:48 -0800]:
Where should I look inside MW code to find incoming url parser and url renderer?
includes/WebRequest.php and includes/Linker.php is a good start. Also namespace part is parsed in includes/Title.php (but it is better to convert 'Namespace/Page' to 'Namespace:Page' via rewrite rule or in WebRequest (when REQUEST_URI is available) rather than trying to rebuild the whole Title class, which would break another classes and / or extensions.
I'll appreciate any suggestions, will post a patch on github too.
I really doubt that such non-standard addressing will be accepted into the core. Anyway, the default URLs are pretty much SEO-friendly, even /index.php/Namespace:Title is similar to "folder structure". Our site moved up in the Google rankings when the content was transferred to MediaWiki. Dmitriy
wikitech-l@lists.wikimedia.org