Точнее rewrite ^(.*)/(economy|dir|dir1|dir2|dir3)(.*) $1$3 last; Posted at Nginx Forum: http://forum.nginx.org/read.php?21,259583,259585#msg-259585