• Jobs
  • About Us
  • Jobs
    • Home
    • Jobs
    • Courses and challenges
  • Businesses
    • Home
    • Post vacancy
    • Our process
    • Pricing
    • Assessments
    • Payroll
    • Blog
    • Sales
    • Salary Calculator

0

935
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 3 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 3 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 Our process Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.

Andres GPT

Show me some job opportunities
There's an error!