What is the correct/recommended way from a SEO point of view to pass multiple parameter values for a single key in a URL.
e.g. my online store sells the watches that I'd like filtering using facets and the URL changes. Available watch colors are:
- black
- navy-blue
- pinkish-red
- shades-of-the-forest
- white
Google says use key-value pairs like:
watches?key1=value1&key2=value2
But what is the actual syntax for a key with multiple values and those values include hyphens? Say someone wants to filter by three colors: navy-blue, pinkish-red and shades-of-the-forest
watches?color=navy-blue-pinkish-red-shades-of-the-forest
which, because of the hyphenated values looks like one long value
I could use camel caps
watches?color=navyBlue-pinkishRed-shadesOfTheForest
But I want my URLs to be all lowercase
I could use underscores
watches?color=navy-blue_pinkish-red_shades-of-the-forest
But I wanted to avoid mixing underscores and hyphens
I could use an array of brackets:
watches?color[]=navy-blue&color[]=pinkish-red&color[]=shades-of-the-forest
I seem to think I read somewhere Google advised against this
I see Debenhams use colons like this:
watches/navy-blue:pinkish-red:shades-of-the-forest?#filter
But aren't colons special characters in a URL? They don't look right to me.
I know how to handle all of them from a technical point of view but what is the most SEO-friendly syntax?