I’ve got a url type:- http://www.example.com/products.php?cat=1 which I am able to rewrite to:- http://www.example.com/myproduct1 using the following .htaccess rule:- RewriteRule ^myproduct1$ products.php?cat=1.
What rule would I need to enter if I wanted to rewrite to:- http://www.example.com/myfolder1/myproduct1/?
For any arbitrary path segments a and b in
/a/b/, you can use this:Edit In response to your comment: Just put
good/boyin your pattern: