Regex rewrite to root document

etrader nginx-forum at
Mon Jan 16 04:35:44 UTC 2012

I have a simple re-write of

rewrite ^/(.*) /post.php?id=$1 last;

This will breaks my main index page, as will also be
redirected to "post.php?id="

How can I modify my regular expression not to change the main index

Posted at Nginx Forum:,221278,221278#msg-221278

More information about the nginx mailing list