Forum Moderators: phranque
I have the following URL in google that has been cached:
http://www.example.com/index.php/rackmount-computers/2u-computers?view=subcategory&layout=systems&subcategory_id=19
I need it to be redirected to:
http://www.example.com/index.php/rackmount-computers/2u-rackmount-computers
I have tried various methods with query string and here is the latest iteration:
RewriteCond %{QUERY_STRING} ^view=subcategory&layout=systems&subcategory_id=19?
RewriteRule ^index\.php http://www.example.com/index.php/rackmount-computers/2u-rackmount-computers$1 [R=301,L] [edited by: jdMorgan at 3:42 pm (utc) on Oct. 29, 2009]
[edit reason] example.com. Please see TOS. [/edit]
RewriteCond %{QUERY_STRING} ^view=subcategory&layout=systems&subcategory_id=19$
RewriteRule ^index.php/rackmount-computers/2u-computers$ http://www.example.com/index.php/rackmount-computers/2u-rackmount-computers? [L,R=301]
[edited by: jdMorgan at 3:41 pm (utc) on Oct. 29, 2009]
[edit reason] example.com. Please see TOS. [/edit]