Home How to match German Umlaut (uppercase Ü) in htaccess rewrite-rules?
Reply: 0

How to match German Umlaut (uppercase Ü) in htaccess rewrite-rules?

user756
1#
user756 Published in July 21, 2018, 9:54 am

I have a vanity-url redirect as a rewrite rule in .htaccess, including German Umlaut ü (Umlaut in the path, no Umlaut-Domain with those double-dashes...):

RewriteRule ^(uber|ueber|über|%C3%BCber|%C3%9Cber)([_-]mich)?\/?$ 
    https://somewhere-else.com [NC,R=301]

Remarkably, it works for: mydomain.com/uber..., ueber-me, also lowercase mydomain.com/über does work.

The only thing not working is übercase mydomain.com/Über. Though I did verify the correctness of my URI-encodings with rishida... %C3%BCber %C3%9Cber? it should be.

Confusing…

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.305276 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO