Title: second page error
Last modified: August 20, 2016

---

# second page error

 *  Resolved [carlytx](https://wordpress.org/support/users/carlytx/)
 * (@carlytx)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/second-page-error/)
 * Just upgraded to WP 3.5 and the latest version of this plugin and now when I 
   do a search on a term it returns the first page of results correctly. However
   if I click on the link to retrieve more results on the second page it links back
   to my home page even though the page id seems correct.
 * First page of results shows as this:
 * **[http://oursite.com/?s=news](http://oursite.com/?s=news)** and returns the 
   results correctly
 * clicking on the retrieval of the second page of results shows this:
 * **[http://oursite.com/page/2/?s=news](http://oursite.com/page/2/?s=news)** but
   displays the home page of the site.
 * (note I just changed our actual domain name to oursite)
 * I just tried this on another domain which is still running WP 3.42 and this plugin
   at version 3.05 and it works correctly for all result pages.
 * [http://wordpress.org/extend/plugins/relevanssi/](http://wordpress.org/extend/plugins/relevanssi/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Mikko Saari](https://wordpress.org/support/users/msaari/)
 * (@msaari)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/second-page-error/#post-3369992)
 * Paging does work on my sites, and there should be no changes to it in the recent
   versions, so probably something else… Could it be the pagination is based on 
   WP search, and the Relevanssi results do not actually have a second page of results?
 *  [Tyguy7](https://wordpress.org/support/users/tyguy7/)
 * (@tyguy7)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/second-page-error/#post-3370167)
 * I am having a similar issue. All pages except page 1 return a 404 error. Previous
   versions of relevanssi had a paged=pagenumer url argument to control pagination.
   Now it uses a prefixed /page/pagenumber before the search params in the url. 
   This does not work with my site for some reason. Please help!
 *  [Tyguy7](https://wordpress.org/support/users/tyguy7/)
 * (@tyguy7)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/second-page-error/#post-3370168)
 * I ended adding a catch for is_search() in wp-pagenavi’s get_url function. Just
   forced a new param to the end of the url “page” = $paged…
 *  Plugin Author [Mikko Saari](https://wordpress.org/support/users/msaari/)
 * (@msaari)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/second-page-error/#post-3370171)
 * Tyguy7, Relevanssi does not care whether you have url argument or fancy urls,
   Relevanssi reads the $wp_query->query_vars[‘paged’] directly. Relevanssi has 
   no say over which format your blog uses.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘second page error’ is closed to new replies.

 * ![](https://ps.w.org/relevanssi/assets/icon-256x256.png?rev=3529670)
 * [Relevanssi - A Better Search](https://wordpress.org/plugins/relevanssi/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/relevanssi/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/relevanssi/)
 * [Active Topics](https://wordpress.org/support/plugin/relevanssi/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/relevanssi/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/relevanssi/reviews/)

## Tags

 * [results page](https://wordpress.org/support/topic-tag/results-page/)

 * 4 replies
 * 3 participants
 * Last reply from: [Mikko Saari](https://wordpress.org/support/users/msaari/)
 * Last activity: [13 years, 3 months ago](https://wordpress.org/support/topic/second-page-error/#post-3370171)
 * Status: resolved