views:

218

answers:

1

I know it's possible to create links where UTF8 characters are encoded, but is it possible to actually match those characters within rewrite rules? Example being just rewrite a static page in utf8 cyrillic russian text to some other page.

+2  A: 

Yes it’s possible:

RewriteRule ^de/b\xC3\xA4ume$ en/trees [L]

This will match /de/bäume and rewrite it to /en/trees.

Gumbo
Interesting. And one must convert the % to \x. I just can't get it to work the other way. Since there is no regex happening there, I'm assuming I can keep the % chars.
sims