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

1.1K
Views
How to redirect an encoded url slug with Nginx

I have a strange url, (/%E2%80%8E) from an older version of a site that needs to be redirected to (/). I tried the following but it did not work:

location /%E2%80%8E {
  return 301 /;
}

Any help would be appreciated!

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

You cannot use percent encoded URIs in the location statement.

I managed to match the URI by using three hexadecimal bytes. The regular expression syntax incudes a method for inserting arbitrary byte values by using the \x escape sequence.

For example:

location ~ ^/\xE2\x80\x8E { return 301 /; }
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!