Nginx - rewrite 不区分大小写进行匹配
[ 2014-09-13 11:06:23 | 作者: admin ]
Use (?i) to match case-insensitively
eg: rewrite (?i)/(Cheap-[^\/]+\.html)(.*)$ /filter.php?route=$1 last;
参考范例
参考:
http://blog.csdn.net/w6611415/article/details/27367629
http://stackoverflow.com/questions/21577841/nginx-case-insensitive-url-redirection
eg: rewrite (?i)/(Cheap-[^\/]+\.html)(.*)$ /filter.php?route=$1 last;
参考范例
rewrite ^/html/newsList-(.*)\.html$ /html/newsList.php?cid=$1 last;
修改为rewrite (?i)^/html/newsList-(.*)\.html$ /html/newsList.php?cid=$1 last;
参考:
http://blog.csdn.net/w6611415/article/details/27367629
http://stackoverflow.com/questions/21577841/nginx-case-insensitive-url-redirection
评论Feed: http://blog.xg98.com/feed.asp?q=comment&id=2225
这篇日志没有评论。
此日志不可发表评论。