Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

192
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!