I am trying to forward a specific request to my home page using .htaccess and 301 redirects but I am having problems and I am not sure why.
I am using OpenCart and are using the product tags for admin use but not in the front end. I want to forward any request for the tags to the homepage. An example string would be "/index.php?route=product/
" - So if the url contains "product/search&tag=" then I want it to forward to /
I have tried a number of things but have not been able to get it to work. Including
RewriteRule (.*)product/search&tag=(.*) / [R=301,L]
RewriteRule ^/index.php?route=product/search&tag=(.*) / [R=301,L]
But I cannot get it to work.
Can someone please advise where I am going wrong?