Forum Moderators: phranque
I'm trying to get from
[domain.com...]
to
[domain.com...]
where the cart id is always 9999999.99999 but the part that reads *SF0L50 keeps changing. Basically, I want to drop the part that reads cart_id=9999999.99999*SF0L50& and keep the rest intact.
I've made several attempts, this being typical:
Options +Indexes
Options +FollowSymlinks
RewriteEngine on
RewriteBase /RewriteRule ^(.*)cart_id=9999999.99999.......&(.*)$ $1$2 [L,R=301]
Help. (And Thank you)
RewriteCond %{QUERY_STRING} ^cart_id=9999999\.99999[^&]+&product=(.+)$
RewriteRule ^store/agora\.cgi$ /store/agora.cgi?product=product=%1 [L]
Second, there appears to be a redundant "product=" in your requirements statement above, which I have faithfully reproduced.
Third, the code, as written, will work with only the parameters you specified, and in the order specified.
However, you should be able to work out the necessary changes, if needed, given the documentation I have previously cited.
Jim