How to handel vowel mutation in pretty url?

This is a FORK of the CMS Made Simple project and is not oficially supported in any way by the CMS Made Simple development team.
Locked
gardapro
Forum Members
Forum Members
Posts: 53
Joined: Mon Jan 04, 2010 1:52 pm

How to handel vowel mutation in pretty url?

Post 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.
Last edited by gardapro on Sat May 15, 2010 10:30 am, edited 1 time in total.
Peciura

Re: How to handel vowel mutation in pretty url?

Post 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 '\ê'.
reneh
Dev Team Member
Dev Team Member
Posts: 446
Joined: Tue Nov 28, 2006 8:39 pm
Location: Norway

Re: How to handel vowel mutation in pretty url?

Post 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....
ReneH 8-)
A search will save you hours waiting for an answer! Image
Locked

Return to “[locked] CMSMS MLE fork”