I'm trying to hard code a redirect on my site from a category based URL to a fixed URL.
The url structure is :
http://www.mysite.com/my-category-c-17_12.html
And I'm trying to redirect that to:
http://www.mysite.com/my-static-category.php
Using the following redirect in my .htaccess file:
Redirect 301 /my-category-c-17_12.html http://www.mysite.com/my-static-category.php
I end up with:
http://www.mysite.com/my-static-category.php?cpath=17_12
Below my redirect, I also have the following line:
RewriteRule ^(.*)-c-([0-9_]+).html$ index.php?cPath=$2&%{QUERY_STRING}
I'm not sure if that is what is causing it or not. Basically I want a way to strip the parameters from the redirected URL. Does anyone know how to deal with that? Thanks!