try_files Wordpress search

Edho P Arief edhoprima at gmail.com
Fri Apr 29 16:42:09 MSD 2011


On Fri, Apr 29, 2011 at 7:14 PM, okone <nginx-forum at nginx.us> wrote:
> I recently switched from using if rules for wordpress "pretty" url
> rewriting to the preffered try_files directive. I used the configuration
> set out on this
> (http://elivz.com/blog/single/wordpress_with_w3tc_on_nginx/) page and it
> all seemed to have been going well.
>
> However I notice that when I perform a search on wordpress and try to
> navigate to page two of the results, it actually directs you to page two
> of the blog. I have tried this on the few places I know to have the
> try_files rules in place and it seems to happen on all of them.
>
> I just want to know if the issue is with nginx or with Wordpress
> internal rewriting? If its the latter then I will get in contact with
> them.
>

Probably something related with wordpress rewrite parser. Though it
can be worked around by using

try_files $uri $uri/ /index.php?q=$uri&$args;

instead of the recommended

try_files $uri $uri/ /index.php;



More information about the nginx mailing list