quick regexp attempt - try escaping the ? - try \? On Sun, Dec 20, 2009 at 2:41 AM, jimxms <nginx-forum at nginx.us> wrote: - rewrite ^/content.php?/(\w*)/(\w*)/(\w*)$ /content/$1/$2/$3 last; + rewrite ^/content.php\?/(\w*)/(\w*)/(\w*)$ /content/$1/$2/$3 last;