How can you handle spaces in the original url in a redirect map? The map I have set up seems to be working properly for other redirects.
However, for urls with spaces, I tried:
‘/banner ads.htm’ /links/link-humor-times/;
…but that’s not working. How do you handle spaces?
Okay, found the solution. Just substitute
%20
for the spaces, and don't use quote marks.This works:
/banner%20ads.htm /links/link-humor-times/;
I didn't try it before because I'd read in a forum that it wouldn't work with nginx, but it does.