I have the following url-rewriting in htaccess:
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^category/([0-9]+)/([0-9a-zA-Z]+)/?([0-9a-zA-Zßäöü\s]+)?/?([0-9a-zA-Z.ßäöü\s]+)?/?([0-9a-zA-Z.ßäöü\s]+)?/?([0-9]+)? category.php?mid=$1&cid=$2&ccid=$3&cccid=$4&ccccid=$5&page=$6 [NC,L]
category/$1/$2 should open catagory.php?mid=$1&cid=$2 (and will start with page=1); this works fine with the above code.
However, I would like the following url's to work as well" category/$1/$2/$6 should open category.php?mid=$1&cid=$2&page=$6.
Please note $6 is always a number, the categories $2, $3, $4 and $5 are a combination of numbers and letters.
Examples:
category/19/sport (mid=19, cid=sport)category/19/sport/2 (mid=19, cid=sport, page=2)category/19/sport/soccer/2.championsleague/2016results (mid=19, cid=sport, ccid=soccer, cccid=2.championsleague, ccccid=2016results)category/19/sport/soccer/2.championsleague/2016results/10 (mid=19, cid=sport, ccid=soccer, cccid=2.championsleague, ccccid=2016results, page=10)
How should I alter the URL rewrite?
cccidparameter showing different values for same URL?