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.
How to handel vowel mutation in pretty url?
How to handel vowel mutation in pretty url?
Last edited by gardapro on Sat May 15, 2010 10:30 am, edited 1 time in total.
Re: How to handel vowel mutation in pretty url?
not using pretty urls much, especially with non English letters.
But have you tried to replace
with
or simply escape 'ê' like '\ê'.
But have you tried to replace
Code: Select all
jardinbienêtre
Code: Select all
jardinbien\%C3\%AA
Re: How to handel vowel mutation in pretty url?
Be aware that a domainname itself can't have special chars!
encoded chars can be in the url else....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.
ReneH
A search will save you hours waiting for an answer!
A search will save you hours waiting for an answer!