The reason I'm asking this question is because I have heard that there are several ways of doing a 301 redirect via the .htaccess file. I'm still a bit confused.
This is for an ecommerce site.
The way I was taught it was:
RewriteRule ^greewidgets\.html /accessories-greenwidgets-c-2_13 [L,R=301]
....with the first page (greenwidgets\.html) being 301 redirected to the second page (/accessories-greenwidgets-c-2_13 [L,R=301])
I tried that, and it doesn't work. I'm on an Apache server Virtual Dedicated.
I also don't understand why there is a "\" before the ".html" in the first line of the rule.
I googled it and found several ways of doing it and got even more confused.
Thanks if you can help.