http://www.mydomain.com/index.php?variable1=2&variable2=3&Itemid=194
I need the URL to be:
http://www.mydomain.com/index.php?variable1=2&variable2=3&Itemid=1
I have tried this:
- Code: Select all
RewriteCond %{QUERY_STRING} ^((.*&)?Itemid=194)(&.*)?$ [NC]
RewriteRule ^(index\.php)$ /$1?%1%3 [R=301,L]
but I'm getting an endless loop. The other catch is that the Itemid may not be the last variable in the query string.
What would the redirect be to change all the Itemid=194 to Itemid=1 and leave all other Itemid's unaffected?
TIA