Hello David
As using many feeds result in having many categories with different names (whereas some are similar), i had the idea to create my own categories simply, and with the names i want
for example i have 50000 products and i want one category like "Webcam", then i use the search motor with "webcam" and thanks to the rewriting of the corresponding search url, i now have a permanent "Webcam" category
I managed to rewrite the search urls by simply adding to the .htaccess :
RewriteRule ^(.*).php$ search.php?q=$1&rewrite=1%{QUERY_STRING} [L]
The problem comes with pagination ...
I suppose i will then have to make changes to search.php
What king of changes do i have to make to get search url rewriting working ?
Thanks
Cheers
Coyote
Hi,
With this rule...
RewriteRule ^(.*).php$ search.php?q=$1&rewrite=1%{QUERY_STRING} [L]
I suspect this is not working because the pagination code is setup to create /nn.html links. What you could try is removing rewrite=1 from the re-written URL, and this should generate "?page=4" style pagination links, but probably not in your re-written format.
In summary; I think you need to remove rewrite=1 from your rule, and then modify the pagination links generated in the non-re-write section of search.php...
Cheers,
David.