uid_b Wrote: ------------------------------------------------------- > scratch that! > > regex was a little greedy, should look like: > ^(.+\.php)(.*?)\? unless of course you're using the pcre library which can't handle \?? this actually works: ^(.+\.php)([^?]*).*$ Posted at Nginx Forum: http://forum.nginx.org/read.php?2,168078,168097#msg-168097