Redirecting to IDN

Helicon Ape provides support for Apache .htacces and .htpasswd configuration files for Microsoft IIS.
User avatar
Posts: 7
Joined: 08 Aug 2013, 12:01

Redirecting to IDN

27 Aug 2014, 05:36

Hi community,

I'm desperately trying to redirect to an IDN domain, but it doesn't work for me, see details in my example.

Code: Select all
RewriteCond %{HTTP_HOST} ^test-mäh\.eu
RewriteRule (.*) http://www.test-mäh.eu/$1 [R=301,L]


This doesn't trigger at all, but when I change it to
Code: Select all
RewriteCond %{HTTP_HOST} ^test-m.h\.eu

it triggers, but the redirect goes to
Code: Select all
http://www.test-m�h.eu/


How can I make this redirect work?

Thank you for any suggestions
dansk aka Christian

User avatar
Posts: 871
Joined: 12 Mar 2012, 09:54

Re: Redirecting to IDN

27 Aug 2014, 07:22

Hello,

Please try to use the following flags after the rule to make it working:

RewriteRule (.*) http://www.test-mäh.eu/$1 [R=301,L, NE, NU]

User avatar
Posts: 7
Joined: 08 Aug 2013, 12:01

Re: Redirecting to IDN

29 Aug 2014, 11:30

Hi, thanks for your answer.

Unfortunately, this doesn't work for me.

Right now, I have the following redirect:
(actual values, you can try yourself)
Code: Select all
RewriteCond %{HTTP_HOST} ^(www\.)?ferienhausurlaub-in-daenemark\.de
RewriteRule (.*) http://www.ferienhaus-dänemark.eu/? [R=302,L,NU,NE]


(302 for testing purposes, file is saved as utf8 without BOM)

I also tried ASCII encoding, but no success.
Any suggestions?

User avatar
Posts: 7
Joined: 08 Aug 2013, 12:01

Re: Redirecting to IDN

30 Aug 2014, 03:23

Ok it's working now, I guess it was a cache problem :-)

Thanks for your help.

Return to Helicon Ape

Who is online

Users browsing this forum: No registered users and 0 guests