[Mediawiki-l] URL Rewrite using ISAPI_Rewrite

zham rock zhamrock at gmail.com
Thu Oct 18 15:52:08 UTC 2007


Hi Guys,

I found out that these rules from
http://meta.wikimedia.org/wiki/URL_rewrite_in_IIS does not support special
characters eg. / \ . - () etc...


   -

   RewriteRule /wiki/([\w:.]+)(?:\?(.+))? /wiki/index.php\?title=$1?2&$2: [I,L]

   - RewriteRule
   /wikiDir/(?!Special)([\w:]+)/((?:view)|(?:watch)|(?:unwatch)|(?:delete)|(?:revert)|(?:rollback)|(?:protect)|(?:unprotect)|(?:info)|(?:markpatrolled)|(?:validate)|(?:render)|(?:deletetrackback)|(?:print)|(?:dublincore)|(?:creativecommons)|(?:credits)|(?:submit)|(?:edit)|(?:history)|(?:raw)|(?:purge))(?:\?(.+))?
   /wikiDir/index.php\?title=$1&action=$2&$3 [I]
   - RewriteRule /wikiDir/(?=Special)([\w:]+)/([\w:]+)
   /wikiDir/index.php\?title=$1&target=$2 [I]

I would appreciate if someone could help me to give me the correct rules to
support special characters. I badly need page/subpage to work :(

Regards'

zham


More information about the MediaWiki-l mailing list