Hello, I need a htaccess expert I think because I am slowly going insane. :-)
I am trying to redirect some product pages from the old site to the new site to benefit page rank. The actual domain has not changed, just the structure.
For example, redirect from: www.example.co.uk/itemdetails.php?itemId=48
To: www.example.co.uk/category/item1.html
Here is the code I am trying to use but I think I am missing something as it is not working:
RewriteCond %{QUERY_STRING} ^itemId=48 [NC]
RewriteRule /itemdetails\.php$ /category/item1.html [R=301,QSA,L]
Can anyone see where I am going wrong. Thanks in advance.