Any clues as to why a search should go straight back to the index.php page?
I have got a search.php template. Permalinks have index.php/title-of-post/ format.
Could it be .htaccess? The format of .htaccess is
<Files .htaccess>
order allow,deny
deny from all
</Files>
Redirect 301 /index.html http://www.mysite.com/index.php
Redirect 301 /novelsmain.html http://www.mysite.com/blah.php
AddHandler server-parsed .htm .html
ErrorDocument 403 /cgi-bin/advlogger/error.cgi?403
ErrorDocument 404 /cgi-bin/advlogger/error.cgi?404
ErrorDocument 500 /cgi-bin/advlogger/error.cgi?500
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
Any ideas greatly appreciated.