I need to redirect one dynamic URL to another, but with slightly changed parameters. This is the original URL:
http://www.EXAMPLE.com/index.php?main_page=index&cPath=5
and it needs to be redirected to
http://www.EXAMPLE.com/index.php?main_page=index&cPath=25
I have tried so many different variations, but not one seemed to work.
RewriteCond %{QUERY_STRING} ^main_page=index&cPath=5$
RewriteRule ^/(index\.php|)$ http://www.EXAMPLE.com/index.php?main_page=index&cPath=25 [L,R=301]
I'm going crazy with this... Can anyone please point me in the right direction and tell me what I'm doing wrong?