Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

Help with location match regex for encoded / unencoded url

$
0
0
Hi all, I really hope someone can assist me as I am out of ideas to get a regex working for this location match.

I need a location regex to match the following requests and redirect them to the correct location but regex has me totally stumped on this one.

The unencoded URL string is:

/historical-rainfall-trends-south-africa-1921–2015.pdf

The encoded URL string is:

/historical-rainfall-trends-south-africa-1921%C3%A2%E2%82%AC%E2%80%9C2015.pdf

How can I get a location match for these? It's literally only one pdf file that got uploaded with a messed up filename and now I am unable to redirect search engines to the correct file.

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>