I’m struggling with something at the moment. I’ve managed to rewrite the URL for a page displaying products, including pagination, but the page has a product filter which can give up to four extra parameters. The filter is actually a form but the results need to be paginated so I need to add these to the rewritten URL’s. Is there any way to add a query string (?this=1&that=whatever) to the end of a rewritten URL with mod_rewrite.
I’m not rewriting all those parameters at the moment, and I was hoping to avoid it because most are only shown after HTTP POST, which is why I was hoping to dump them on the end of the rewritten URL as a query string.
When you visit the page without filtering results the URI’s are:
I’m not sure I completely understand what you want to achieve, but from the looks of it you could also use the QSA (Query String Append) flag instead of an extra RewriteCond, as in :