Will this work correctly with all the arguments followed? location = /de/ { if ( $arg_s2member_paypal_notify ) { rewrite ^ / permanent; } } Posted at Nginx Forum: http://forum.nginx.org/read.php?2,258420,258422#msg-258422