Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

193
Vistas
NGINX Rewrite for Latin character

I need to add a NGINX rewrite to replace "İ" (Capital I with dot on top) with a regular "i" in URLs with following pattern:

  • https://example.com/tİf-to-tiff
  • https://example.com/tİf-to-İco
  • https://example.com/doc-to-dİf

I was able to capture "İ" with (?:[\x{130}]) as follows:

https://regex101.com/r/ZfWlGa/1

When translated to NGINX rewrite as follows. It does not work.

rewrite (.)(?:[\x{130}])(.) $1i$2 permanent;

Also tried the opposite approach, that is to find non-ASCII characters and replace with "i" as follows. It does not work either.

https://regex101.com/r/VxBB30/1

What is correct way to do it?

over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

I don't think Nginx regular expression syntax supports the Unicode code point notation. You can instead write the code point as two octets. U+0130 is represented in UTF8 as the two octets C4 and B0.

For example:

rewrite ^(.*)\xC4\xB0(.*)$ $1i$2 permanent;
over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda