Thank you Maxim. :) Is there a way to skip the IF with try_files and still having a 301 footprint? Something like: try_files /beta/info/$arg_id/ =404; Posted at Nginx Forum: http://forum.nginx.org/read.php?2,240299,240302#msg-240302