Hi all
I'm having a problem with the search on my site.
When I search for example money week I get about 12 results.
10 are shown on the first page however I get the error when I try to select page 2
Can anyone help?
thanks
Mally
Hi David
heres my .htaccess
Options -MultiViews
RewriteEngine On
RewriteBase /
RewriteRule ^subscribe-to/(.*).html$ products.php?q=$1&rewrite=1&%{QUERY_STRING} [L]
RewriteRule ^review/(.*).html$ reviews.php?q=$1&rewrite=1&%{QUERY_STRING} [L]
RewriteRule ^merchant/$ merchants.php
RewriteRule ^merchant/(.*)/$ search.php?q=merchant:$1:&rewrite=1%{QUERY_STRING} [L]
RewriteRule ^merchant/(.*)/(.*).html$ search.php?q=merchant:$1:&page=$2&rewrite=1%{QUERY_STRING} [L]
RewriteRule ^category/$ categories.php
RewriteRule ^category/(.*)/$ search.php?q=category:$1:&rewrite=1%{QUERY_STRING} [L]
RewriteRule ^category/(.*)/(.*).html$ search.php?q=category:$1:&page=$2&rewrite=1%{QUERY_STRING} [L]
RewriteRule ^brand/$ brands.php
RewriteRule ^brand/(.*)/$ search.php?q=brand:$1:&rewrite=1%{QUERY_STRING} [L]
RewriteRule ^brand/(.*)/(.*).html$ search.php?q=brand:$1:&page=$2&rewrite=1%{QUERY_STRING} [L]
RewriteRule ^all/$ allproducts.php
RewriteRule ^all/(.*)/$ search.php?q=all:$1:&rewrite=1%{QUERY_STRING} [L]
RewriteRule ^all/(.*)/(.*).html$ search.php?q=all:$1:&page=$2&rewrite=1%{QUERY_STRING} [L]
RewriteRule ^product/(.*).html$ /subscribe-to/$1.html [R=301]
RewriteRule ^search/(.*)/$ search.php?q=$1&rewrite=1&log=1&%{QUERY_STRING} [L]
Hi Mal,
It's just missing a line to handle the follow on pages (2.html, 3.html) etc. Try adding this on the end:
RewriteRule ^search/(.*)/(.*).html$ search.php?q=$1&page=$2&rewrite=1&log=1&%{QUERY_STRING} [L]
That should do the trick!
Cheers,
David.
Hi Mal,
This is being caused by a re-write probem as a result of the changes made to use search engine friendly URLs for user-entered search (is this using the code from this thread)? Can you post your current .htaccess (use the <code> tags) and I'll check it over for you...
Cheers,
David.