Tricky Rewrite rules.

HonDev Developer developerhondev at
Fri Nov 23 02:17:30 MSK 2007

Ok if I remove the rewrites on server port 81 and put them at location
@tricky I get the index page rendering perfectly but when I click on
to about page /about/ and hello world /hello-world/ it just remains on
the index page.

location @tricky {
if (!-e $request_filename) {
        rewrite ^.+?(/wp-.*) $1;
        rewrite ^.+?(/.*\.php)$ $1;
        rewrite ^(.*)$  /index.php?q=$1 break;

More information about the nginx mailing list