Reputation: 37
I did this rule
RewriteRule ^([^/.]+)/stock/([^/.]+)/([^/.]+)/([0-9]+) product_list.php?model=$1&year=$5 [L]
But it only takes model variable and ignores year. what im i doing wrong?
Upvotes: 0
Views: 12
Reputation: 17238
There are only 4 capture groups in your regex while you reference the fifth with $5
.
Upvotes: 1