I am trying to figure out this scenario: I need to rewrite
url.com/a/b/c/1
into
url.com?page_id=1&listing[make]=a&listing[model]=b&listing[region]=c
exceptions
url.com/a/all/c/1
into
url.com?page_id=1&listing[make]=a&listing[model]=&listing[region]=c
etc
I have no idea how to creat a negative conditional based on string match within the variable that is being transferred. in this case if the variable is "all"