As I've mentioned earlier, Google is for some reason incorrectly indexing some of my product urls, leaving out the cPath designation.
While I try to find out why, I figured I could at least set up some rewrites so that the bad Google links can be redirected correctly.
I've spent a couple of hours trying to figure out how to create a correct Rewrite Rule for the .htaccess file -- and I've failed miserably. So, if any of you super code types have a second, can you look at what I have and let me know where I've gone wrong?
What I want to do is redirect this url:
index.php?main_page=product_info&products_id=1
To this:
index.php?main_page=product_info&cPath=1&products_id=1
And he's what I've come up with, which I've placed in a .htaccess file in the /store directory
RewriteEngine On
RewriteRule ^index.php?main_page=product_info&products_id=1$ index.php?main_page=product_info&cPath=1&products_id=1 [R=301,L]
It does absolutely nothing -- no errors, but no redirects.
Sorry, I know I'm being a lame coder here, but I'm guessing someone on this site will know the answer to this.
Thanks,
John


Reply With Quote

