Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Currently, I have this configuration in mod_rewrite in apache:

RewriteCond %{REQUEST_URI} !-f
RewriteCond %{REQUEST_URI} !-d
RewriteRule ^([a-zA-Z]{2,3})/?$ /index.html?wtsLang=$1 [L]
RewriteRule ^([a-zA-Z]{2,3})/([a-zA-Z_-](.+)\.html)$ /$2?wtsLang=$1 [L]

It works well for all languages except Chinese (specifically zh-TW and zh-CN). What is needed to localize it?

share|improve this question
So someone might be able to help you out, what version of apache are you running? I've assumed it's 2.x when retagging. Also, when you say it doesn't work, what does it do instead? – Falcon Momot May 22 '13 at 8:57
What do you mean with "does not work for Chinese". Are you referring to URLs in Chinese characters? Can you give an example of a URL that you expect the rule to match, but that doesn't? – Krist van Besien May 22 '13 at 13:16

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.