.htaccess redirect umlaut domain

Posted by Christian Engel on Stack Overflow See other posts from Stack Overflow or by Christian Engel
Published on 2012-10-04T09:11:33Z Indexed on 2012/10/04 9:37 UTC
Read the original article Hit count: 285

Filed under:
|
|
|

I am trying to redirect requests from a umlaut domain to another domain.

My following code works with ANY other domain, but not umlaut:

<IfModule mod_rewrite.c>
  RewriteCond %{HTTPS} !=on
  RewriteCond %{HTTP_HOST} ^(www\.)?frankfurter-flöhe\.de/$ [NC]
  RewriteRule ^ http://kinderkultur-frankfurt.de/frankfurter-floehe-theaterprogramm.html [R=301,L]
</IfModule>

However, when I call the umlaut domain and copy it from google chromes address bar after that, I get this:

http://xn--frankfurter-flhe-zwb.de/

Altough, if I use that obfruscated domain in my htaccess instead of the "real" umlaut domain, it doesn't work either.

Does anybody have an idea how to match that domain?

© Stack Overflow or respective owner

Related posts about apache

Related posts about .htaccess