I'm using mod_rewrite to rewrite some common search queries to static URLs, so that:
/cgi-bin/search.cgi?query=;Options=factor1
becomes
/collections/factor1/
The only problem with this is that all the paging links remain as dynamic cgi URLs. Ideally I would like them to look like they do for categories i.e. /collections/factor1/more2.html etc. I would then figure out a rewrite rule to pick up the '2' value and pass it into the rewrite query string.
I have tried changing the url and page values via the paging array but I haven't been able to get this to work. Any suggestions on if this is possible and where to start would be appreciated.
/cgi-bin/search.cgi?query=;Options=factor1
becomes
/collections/factor1/
The only problem with this is that all the paging links remain as dynamic cgi URLs. Ideally I would like them to look like they do for categories i.e. /collections/factor1/more2.html etc. I would then figure out a rewrite rule to pick up the '2' value and pass it into the rewrite query string.
I have tried changing the url and page values via the paging array but I haven't been able to get this to work. Any suggestions on if this is possible and where to start would be appreciated.