Forum Moderators: phranque
The part of .htacess i want to change:
RewriteEngine on
RewriteRule ^tshirt/([0-9]+)/([_A-Za-z0-9-]+).html index.php?action=file&fileid=$1 [L]
For example, if article name is "caça" with cedilha i get error, cause browser don't suport this kind of characters.
i want to make the .htacess change it to "caca".
The same with "mãe" i need to change to "mae"
How do i do this?
The complete characters i need to change:
ç to c
ã to a
ê, â, ô to e, a , o
á, é, í, ó, ú to a, e, i, o, u
thanks in advance.
You can make your existing .htaccess code accept UTF-encoded characters and pass them to your php script by changing the pattern, though:
RewriteEngine on
RewriteRule ^tshirt/([0-9]+)/([^.]+)\.html index.php?action=file&fileid=$1 [L]
Your script can then unencode the UTF-encoded characters, if desired.
Jim