Trying to 301 redirect
www.mydomain.com/product.php?view=cat&category=t-shirts
to
www.mydomain.com/t-shirts/
Please keep in mind that I have multiple variations of
product.php?view=cat&category=...
Also, old category reference maybe X; however, the new category reference might be Y. How is this done? Appreciate your help in advance.
Here is what my htaccess looks like right now
RewriteBase /
# RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^/]*)/$ index\.php?pg=$1 [L]
RewriteRule ^([^/]*)/([^/]*)/$ index\.php?pg=$1&pid=$2 [L]
# RewriteRule . /index.php [L]
Redirect 301 /products.php?view=cat&mng=t-shirts http://www.mydomain.com/shirts/
Redirect 301 /products.php?view=cat&mng=shorts http://www.mydomain.com/pants/
Redirect 301 /products.php?view=cat&mng=jeans http://www.mydomain.com/pants/
Needless to say all my "Redirect 301"s are giving 404.