[Labs-l] Q: Language codes in rewrite rules?

Silke Meyer silke.meyer at wikimedia.de
Tue Sep 25 15:24:53 UTC 2012


Hello unicorn people!

I have a question concerning Apache rewrite rules:

For Wikidata we don't have a whole wiki farm on our test system, but one
repo installation and one client installation. We would now like to
pretend we had separate wikidata instances for the languages
(https://bugzilla.wikimedia.org/show_bug.cgi?id=40389).

For the rewrite rules, it would be practical to define variables, macros
or something similar to tell apache "look, these are language codes".

Has anybody used anything similar and could point me to documentation or
give me an example of how you did it??? Or would I actually use regex
without referring to a predefined list?

Thanks for your ideas!
Silke

-- 
Silke Meyer
Projektassistentin Wikidata

Wikimedia Deutschland e.V. | Obentrautstr. 72 | 10963 Berlin
Tel. (030) 219 158 260

http://wikimedia.de

Wikimedia Deutschland - Gesellschaft zur Förderung Freien Wissens e.V.
Eingetragen im Vereinsregister des Amtsgerichts Berlin-Charlottenburg
unter der Nummer 23855 B. Als gemeinnützig anerkannt durch das Finanzamt
für Körperschaften I Berlin, Steuernummer 27/681/51985.



More information about the Labs-l mailing list