0

WP 3.5, nginx (latest) and PHP5-FPM (latest). If you visit http://bombacarta.com/?s=coma the page is properly loaded. When you click on the link to go to the next page, you are redirected to the home page. Try it out: http://bombacarta.com/page/2/?s=coma

I don't know what's the cause to this... I think it's something related to my nginx conf for WP (because it happens on also another installation on the same VPS with same config but different theme). Here's 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;

}
1

Solved changing the location block with this:

location / {
        try_files $uri $uri/ /index.php?$args;
}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.