How to remove query string variable from url using htaccess

495 Views Asked by At

my website has dynamic pages such as

http://www.example.com/index.php?layout=category&category_name=shoes&subcategory_name=sport

I want to remove or hide query string variable from url and display as

http://www.example.com/shoes/sport

Can't write the rule QUERY_STRING with eliminating LAYOUT=CATEGORY. Any thoughts on how to do this? Thanks in advance!

0

There are 0 best solutions below