Page 1 of 1

How to handel vowel mutation in pretty url?

Posted: Sat May 15, 2010 10:26 am
by gardapro
Hi

basicly my htaccess works. But since i have to redirect a url with vowel mutations in doesn't work.
Im runing mle1.6.6

This works well:
RewriteCond %{HTTP_HOST} ^traumgaerten\.ch$ [NC]
RewriteRule ^(.*)$ http://www.traumgaerten.ch/$1 [R=301,L]

But this does not:
RewriteCond %{HTTP_HOST} ^xn--jardinbientre-yhb\.ch$ [NC]
RewriteRule ^(.*)$ http://www.xn--jardinbientre-yhb.ch/fr_FR/$1 [R=301,L]

And this doesn't work either:
RewriteCond %{HTTP_HOST} ^xn--jardinbientre-yhb\.ch$ [NC]
RewriteRule ^(.*)$ http://www.jardinbienêtre.ch/fr_FR/$1 [R=301,L]

And this doesn't work either:
RewriteCond %{HTTP_HOST} ^jardinbienêtre\.ch$ [NC]
RewriteRule ^(.*)$ http://www.xn--jardinbientre-yhb.ch/fr_FR/$1 [R=301,L]

And this doesn't work either:
RewriteCond %{HTTP_HOST} ^jardinbienêtre\.ch$ [NC]
RewriteRule ^(.*)$ http://www.jardinbienêtre.ch/fr_FR/$1 [R=301,L]

I guess the problen is the vocal "ê".
So how can i get this to work?
Thanks.

Re: How to handel vowel mutation in pretty url?

Posted: Thu May 20, 2010 6:16 pm
by Peciura
not using pretty urls much, especially with non English letters.
But have you tried to replace

Code: Select all

jardinbienêtre
with

Code: Select all

jardinbien\%C3\%AA
or simply escape 'ê' like '\ê'.

Re: How to handel vowel mutation in pretty url?

Posted: Thu May 20, 2010 9:17 pm
by reneh
Be aware that a domainname itself can't have special chars!
Conversion of national characters

In the DNS (Domain Name System), it is only possible to register names that consist of the letters a-z, the figures 0-9 and hyphen. There is however a technique, IDN, which converts domain names with national characters into an international standard, ACE form, to make it possible to handle national characters in email programs and browsers. It is the ACE version that is then registered in the DNS.
encoded chars can be in the url else....