Nginx location match regex for special characters and encoded url characters
I've been trying so many things today and I am just not winning. I have one file in my site which got created by accident with a special character in it. As a result Googlebot has stopped crawling for 3 weeks now and Webmaster tools / Search console keeps notifying me and wanting to retest the url. All I want to achieve is to configure Nginx to match the following requests and redirect them to the correct location but regex has me 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