# Parameter not taken into account on a specific link structure

**URL:** <https://www.ruby-forum.com/t/parameter-not-taken-into-account-on-a-specific-link-structure/229768>\
**Category:** NGINX\
**Created:** [January 25, 2013, 12:52pm UTC](https://www.ruby-forum.com/t/parameter-not-taken-into-account-on-a-specific-link-structure/229768 "2013-01-25T12:52:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![OndanomalA](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/e79b87/32.png) [@OndanomalA](https://www.ruby-forum.com/u/OndanomalA)\
**Post date:** [January 25, 2013, 12:52pm UTC](https://www.ruby-forum.com/t/parameter-not-taken-into-account-on-a-specific-link-structure/229768/1 "2013-01-25T12:52:03Z")

</div>

I have WP installed on my VPS (with nginx 1.3.12 and php5-fpm 5.4.11).

The first page of search results (/?s=test) is loaded properly, but  
/page/2/?s=test displays the same content of /page/2/ (so ?s=test isn’t  
taken into account).

It’s probably something wrong with my nginx config:

location ~ .php$ {  
try\_files $uri =404;  
fastcgi\_split\_path\_info ^(.+.php)(/.+)$;  
include /etc/nginx/fastcgi.conf;  
fastcgi\_pass unix:/var/run/php5-fpm.sock;  
}

location / {

# if you’re just using wordpress and don’t want extra rewrites

# then replace the word @rewrites with /index.php

try\_files $uri $uri/ /index.php;

}

Articles work fine anyway… the permalink structure  
(/%year%/%monthnum%/%day%/%postname%/) works fine… so I should find a  
fix  
that doesn’t break that (but “fixes” the search parameter problem).

“DEMO”  
Page 1 (/?s=test): [http://goo.gl/HigKa](http://goo.gl/HigKa)  
Page 2 (/page/2/?s=test): [Ricerca di 'coma' - Pagina 2 di 15 - BombaCarta](http://goo.gl/ujftR)

Thanks in advance.
