I have a site created which is dynamic and the information (area / category / subcategory) passes through htaccess for nice URLs. For example, as the user dives into the categories it flows as follows:
/parts/hard-drives
/parts/hard-drives/hard-drives-sas
I wondered if there was a way to extend this from then on in htaccess so I can pass more items and grab the variable with php, ie:
/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 the first line relates to /products/hard-drives/hard-drives-sas the second relates to /products/hard-drives and then simply a parts page /parts
Hopefully that makes sense!
Thanks.