Nginx: how to change url encoded URL to lower cases?

前端 未结 0 1873
感动是毒
感动是毒 2021-01-31 19:07

I am currently using this

    location ~ [A-Z] {
        rewrite_by_lua_block {
            ngx.redirect(string.lower(ngx.var.uri), 301);
        }
    }

         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题