Forum Moderators: phranque
I have old links which are no longer used which look like this...
http://www.example.com/Merchant2/merchant.mvc?page=PG/CTGY/nl
http://www.example.com/Merchant2/merchant.mvc?page=PG/CTGY/inf
But, these are now dead, replaced by better links which look like this.
http://www.example.com/example_newsletter.html
http://www.example.com/information.html
How can I make a rule so whenever the browser encounters a certain link, (a page with weird attributes like above) and just points them to a completely different link?
Thanks.
Here was my attempt, which doesn't work...
RewriteRule ^(.*)PG/CTGY/nl$ /example_newsletter.html [R=301]
[edited by: tedster at 5:25 am (utc) on June 2, 2007]
[edit reason] use example.com - it can never be owned [/edit]
RewriteCond %{QUERY_STRING} page=PG/CTGY/(nl¦inf)
RewriteRule ^merchant\.mvc$ /site-map.html [R=301,L]
Jim