Hi Guys,
I'm new to an Apache RewriteRule, as I was trying to do the following but it doesn't work.
Redirect from
http
://www.example.com/lbr_sports?action=go_generic_link&category=SPORTS&level=CLASS&key=110000037
to
http
://sports.example.com/en-gb/Politics/Budget-SpecialsPolitics/Budget-Specials-t210002086
and
from
http
://www.example.com/lbr_sports?action=go_type&category=SPECIALS&type_id=210003519
to
http
://sports.example.com/en-gb/TV%2C-Film-and-Radio-c110000052
I'm trying to edit the rewrite module file as follow
RewriteCond %{QUERY_STRING} RewriteCond %{QUERY_STRING} ^lbr_sports(?)action=go_generic_link(&)category=SPORTS(&)level=CLASS(&)key=110000037
RewriteRule ^(.*)$ http
://sports.example.com/en-gb/Politics/Budget-SpecialsPolitics/Budget-Specials-t210002086%4 [R=301,L]
RewriteCond %{QUERY_STRING} ^br_sports(?)action=go_type(&)category=SPECIALS(&)type_id=210003519&?$
RewriteRule ^(.*)$ http
://sports.example.com/en-gb/TV%2C-Film-and-Radio-c110000052 [R=301,L]
Any help much appreciate it.
Thanks,
Peter
[edited by: jdMorgan at 6:17 pm (utc) on May 10, 2010]
[edit reason] example.com, disabled smilies in code [/edit]