I have a requirement where I need to redirect users like below : "www.example.com/text1?a=1&b=2" to "www.example.com/text2?a=1&b=2&c=3"
For this, in my .htaccess file I am using the below mod-rewrite rule as :
RewriteEngine on
RewriteRule /text1(.*) www.example.com/**text2?c=3 [R=301,L,QSA]
Have also tried :
RewriteEngine on
RewriteRule /text1(.*) www.example.com/**text2$1&c=3
However, the above is not working for me and if I attempt to go to "www.example.com/text1?a=1&b=2", I get a straight 404.
Could someone please advise?
Thank you much.