Same old problem with URL character replacement...

17 years 5 months ago #739 by InnerFlash
Hi Emir,

I just bought this component this morning, and now that I'm back from work and testing, I've stumbled on a common issue: the character replacement for URLs.

I'm yet to understand what I did wrong, and yes, I've read the FAQ post on the 404 error.

The replacements I've done are impossible in my language (portuguese), i.e. "aa" , "oo" , "ii", etc. The only thing I'm not sure of is if I can use the same replacement rule for more than one character..., i.e. "ã=>aa,å=>aa".

I know I can do these changes directly on the .htaccess as well. What do you recommend?

Wallace

Community for Portuguese speaking Digital Artists...
www.artistadigital.net

Please Log in or Create an account to join the conversation.

17 years 5 months ago #740 by InnerFlash
BTW,

These are the rules as I typed them in the field:

å=>aa,á=>aa,à=>aa,ã=>aa,â=>aa,ó=>oo,ô=>oo,õ=>oo,ö=>oo,í=>ii,é=>ee,ê=>ee,ø=>oe,æ=>aae,ü=>uu,ç=>cc

Community for Portuguese speaking Digital Artists...
www.artistadigital.net

Please Log in or Create an account to join the conversation.

17 years 5 months ago #742 by Saka

The replacements I've done are impossible in my language (portuguese), i.e. "aa" , "oo" , "ii", etc. The only thing I'm not sure of is if I can use the same replacement rule for more than one character..., i.e. "ã=>aa,å=>aa".


No you can't. You must use unique replacement for each character.
For example: "ã=>ea,å=>aa".

Emir Sakic
www.sakic.net

Please Log in or Create an account to join the conversation.

17 years 5 months ago #744 by InnerFlash
Thanks a lot Emir...

Below is the solution I came up with for Portuguese characters, in case someone here runs into the same trouble:

ã=>aa,á=>aaa,à=>aaaa,â=>aaaaa,å=>aaaaaa,õ=>oo,ó=>ooo,ô=>oooo,ö=>ooooo,í=>ii,é=>ee,ê=>eee,ø=>ooe,æ=>aae,ú=>uu,ü=>uuu,ç=>cc

;)

Community for Portuguese speaking Digital Artists...
www.artistadigital.net

Please Log in or Create an account to join the conversation.

17 years 5 months ago #757 by InnerFlash
One thing that left me wondering...

Because of the special characters that had to be replaced in Portuguese, my urls became a little not read-friendly. Like so:

http://www.artistadigital.net/ajuda/diferenccas-entre-membros-e-usuaaarios/quais-saao-os-privileegios-de-um-membro?/

However, when I manually modify the URL so that all the extra letters are gone, the URL still works (note words like "usuAAArios" became "usuArios"

http://www.artistadigital.net/ajuda/diferencas-entre-membros-e-usuarios/quais-sao-os-privilegios-de-um-membro?/

The problem is, even though it works without the extra letters, the URL produced will still have them. I was wondering if there's a workaround for this, some javascript, or if I could use hexadecimal characters to define letters without having to make them so unique ("aa", "aaa", "aaaa", etc):

http://www.geocities.com/dtmcbride/tech/charsets/ascii.html >> hex. char.

I'm sorry to bug you with it, but I'm just trying to find out a solution for my problem...  :P

Cheers

Community for Portuguese speaking Digital Artists...
www.artistadigital.net

Please Log in or Create an account to join the conversation.

17 years 5 months ago #759 by Saka
That's exactly what you get when you don't enter any replacements. You get URL encoded chars like %24, %45.

You can have it either URL encoded or replaced by unique strings. Or enter manual alias for URLs you don't like.

Emir Sakic
www.sakic.net

Please Log in or Create an account to join the conversation.

About us

We provide high quality Joomla components created by a co-founder and original core developer of Joomla. For over a decade, our products have been used by more than 20.000 webmasters around the world.

Stay in touch