Link to home
Create AccountLog in
Avatar of judsonmusic
judsonmusicFlag for United States of America

asked on

ISAPI redirect help please.

Can someone tell me how to write an isapi redirect in .ht_access that will allow 1 or more of the following url parameters to be passed with relying on all?

I had this,

RewriteRule ^categories/([^-]+)/([^-]+)/([^-]+)/([^-]+)/([^-]+)/.*$ /product_results_public.cfm?categories_id=$1&sub_categories_id=$2&sub_categories_2_id=$3&sub_categories_3_id=$4&sub_categories_4_id=$5&sub_categories_4_id=$5

But it only works if you pass all of the url params, sometime only categories_id needs to get gets passed How can allow for only 1 but not all with this logic?

Thanks

Judson
ASKER CERTIFIED SOLUTION
Avatar of hielo
hielo
Flag of Wallis and Futuna image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account