I have a website that is dynamic and the information (area / category / subcategory) goes through htaccess for nice urls. For example, when a user plunges into categories, he flows as follows:
/parts/hard-drives /parts/hard-drives/hard-drives-sas
I was wondering if there is a way to extend this since in htaccess so that I can pass more elements and capture the variable using php, i.e.
/parts/hard-drives/hard-drives-sas/?manufacturer=dell&price=20
My current lines for the htaccess file are as follows:
RewriteRule ^parts/([^/\.]+)/([^/\.]+)/?$ parts.php?p=$1&f=$2 [L] RewriteRule ^parts/([^/\.]+)/?$ parts.php?p=$1 [L] RewriteRule ^parts parts.php [L]
You will see that the first line refers to /products/hard-drives/hard-drives-sas , the second refers to /products/hard-drives , and then just the /parts page
Hope this makes sense!
Thanks.
David source share