Nginx - rewrite 不区分大小写进行匹配

Use (?i) to match case-insensitively

eg: rewrite (?i)/(Cheap-[^\/]+\.html)(.*)$ /filter.php?route=$1 last; 


参考:http://stackoverflow.com/questions/21577841/nginx-case-insensitive-url-redirection


你可能感兴趣的:(Nginx - rewrite 不区分大小写进行匹配)