Forum Moderators: phranque
domain.com/cat.php?section=12&type=20
into this:
domain.com/cat.php?type=12
(and yes, I'm trying to redirect the initial 'section' into the eventual 'type' and remove the 'section' parameter altogether [albeit preserving its value for use with 'type'])
So far I have this, and I've tried different variations of it with no success:
RewriteCond %{QUERY_STRING} sec=([0-9]+)
RewriteRule ^([0-9]+)&type=([0-9]+)$ /category.php?type=$1? [R=301,NC,L]
Any help is much appreciated.
RewriteCond %{QUERY_STRING} ^section=([0-9]+)&type=
RewriteRule ^cat\.php$ /category.php?type[b]=%1[/b] [R=301,NC,L]
Jim
[edited by: jdMorgan at 10:47 pm (utc) on June 30, 2008]