Relative Content

Tag Archive for nginxwebhttp-redirectserverreverse-proxy

NGINX uri encoding problem, can’t match a map of uri’s with request uri

I have a nginx map of a bunch of uri’s that I want to redirect to another uri. The problem is some of them uri’s has uri encoded chars like %20 or %29. Now what’s going on is that nginx gives me the request uri but its uri decoded meaning for example its giving me “/blogpost/november twentysixth” instead of “/blogpost/november%20twentysixth” which is needed to match the uri in the map.
I have a total of 53k uri’s to redirect so don’t say we should just do location … with every single uri.