是否有更好(更便宜)的方式来做以下事情?
location ~ \/..-..\/account\/(\bdeath-star-canteen\b|\bcake-or-death\b|\bcovered-in-bees\b) {
return 301 https://www.example.com/example/expired-account;
}
应匹配:
http://www.example.com/en-gb/account/death-star-canteen
http://www.example.com/en-gb/account/cake-or-death
http://www.example.com/en-gb/account/covered-in-bees
并将其重定向到过期的帐户页面? en-gb可以根据区域设置而变化吗?
还需要转义/ in nginx URL正则表达式吗?