RewriteRule ^foo-bar-([0-9]+)-([a-z]+)-([a-z-+]+)/$ index.php?a[]=&b=$1&c=$2&d=$3&e=$4&f=$5 [L,NC]
how could i put the last parameter from rule to not be required without to add two lines and in first one to remove it, then in second to remain..?
so, rule to be in one line but to have two option to acees url like:
/foo-bar-2-steps/
/foo-bar-2-steps-eq/
One of the following:
foo-bar-([a-z]+)(-([a-z]+))?Here, the second parameter is optional. Note that this changes your numerical indexes, since you use extra parenthesis.