I am facing issue with redirect below URL to new URL with query string.
http://www.mywebsite.co.uk/product-category/subcategory/?id=TEST_TS&fromDate=&parts=
to
http://www.mywebsite.co.uk/product-category/subcategory/test_ts
I need to also query string word into
lowercase
as well.
Note
TEST_TS
keyword is the value of the first query string and must be in lowercase.- For
product-category
keyword is fixed - For
subcategory
keyword is dynamic [only characters lettersa-z
orA-Z
] - For query string must removed second and third parameter
I have also tried below code in .htaccess
as well, But not working for me.
RewriteRule ^product-category/([a-zA-Z0-9-/+]+)/?id=(.*)$&%{QUERY_STRING} product-category/([a-zA-Z0-9-/+]+)/{lc:$2$} [L]