If a submit a search on my WordPress site, the second page (and onwards) of search results returns a 404 error page or, in some cases, sends me to a completely different page or post (for example, the third page of search results might send me to a page with a '3' in the title).
I'm using the Thematic theme framework and, thanks to the folks on the Themeshaper forums, I've tried the following to no avail:
- Resetting to the default permalinks, and then switching back to the month and name structure
- Switching to a different theme
- Disabling all my plugins
- Removing my functions.php file
The only thing that's given me any sort of clue is that when I switch to default permalink settings, the link for the second page of search results displays correctly: url/?s=test&searchsubmit=Search&paged=2. Accessing that link even when permalinks are set to date and month actually displays the second page of search results correctly too.
However, with permalinks set to date and month, the second page of search results tries to send me to url/page/2/?s=test&searchsubmit=Search, which returns the 404.
I'm completely baffled. It's obviously not a theme or plugin conflict, but is something to do with permalinks - I just haven't got a clue what.
Here's my .htaccess:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
Thanks in advance for any help. Annoyingly I'm not allowed to post the links to the site as I'm a new user here!
Dashboard->Update. – m0r7if3r Feb 10 at 16:05.htaccessis working properly? Also, have you disabled plugins and switched to the default theme at the same time, or only separately? – m0r7if3r Feb 10 at 16:14