nginx seems to treat %3F as "?"

ST smntov at
Wed Nov 22 15:34:13 UTC 2017


I have following redirection rule defined:

location ~ "^/(.*)\.html[^\?]+" {
          return 301 /$1.html;

so that everything besides "?" after an URL gets truncated:
like ->

however it doesn't work when "?" is url encoded into %3F. I would like to redirect to

Is it possible somehow?

Thank you!

More information about the nginx mailing list