(Apache) Can I match UTF8 characters in rewriting rules?

I know that it is possible to create links where UTF8 characters are encoded, but is it possible to actually match these characters in rewriting rules? Example: just rewrite the static page in utf8 Cyrillic Russian text to some other page.

+3
source share
1 answer

Yes, it is possible:

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

This will match /de/bäumeand rewrite it on /en/trees.

+3
source

Source: https://habr.com/ru/post/1714045/


All Articles