redirect non latin urls

#1
I want to redirect requests like

Code:
www.domain.tld/art%C3%ADculos
to the ASCII version:

Code:
www.domain.tld/articulos
I tried to resolve the problem by using
Code:
    <context>
      <type>redirect</type>
      <uri>/art%C3%ADculos</uri>
      <externalRedirect>1</externalRedirect>
      <statusCode>301</statusCode>
      <location>/articulos</location>
      <note></note>
      <allowOverride></allowOverride>
      <realm></realm>
      <authName></authName>
      <required></required>
      <accessControl>
        <allow></allow>
        <deny></deny>
      </accessControl>
      <authorizer></authorizer>
    </context>
but didn't succeed.

Suggestions are welcome.
 
Last edited:
#2
encoding problem?

I found that this is working

<rewrite>
<enable>1</enable>
<logLevel>0</logLevel>
<rules>RewriteRule ^/?art&Atilde;culos/(.*)$ articulos/$1 [R=301,L]</rules>
</rewrite>

Is there a problem with LiteSpeed config files encoding?
 
Last edited:
Top