I am using recordset paging, and am trying to fix the URL's of the pages that are created.
Currently, they appear like this:
http://example.com/sections/auctionitems/example_past_auction_items.php?pageNum_rsaucites=31&totalRows_rsaucites=1550
Each time a new row is added to the dbase, the URL of every page changes as the row number is changed at the end of the URL. Turns out the URL will work without this last part: &totalRows_rsaucites=1550 just fine (basically everything after the 31 in the example, which is in effect the page number). So my plan was to redirect to that URL (to itself basically) and strip of the balance of the query string and in effect create static URL's.
I have tried it many different ways, and here is the frustrating current status of my efforts, which of course does not work. Any guidance would be greatly appreciated:
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{QUERY_STRING} ^pageNum_rsaucites=(.*)&totalRows_rsaucites=1550
RewriteRule ^index\.php/sections/auctionitems/example_past_auction_items\.php$ http://example.com/sections/auctionitems/example_past_auction_items.php?pageNum_rsaucites=%1? [R=301,L]