Friendly urls with ten error variables

1

When you place 10 error variables

RewriteRule ^client/product/([a-z0-9-]+)/([a-z0-9-]+)/([a-z0-9-]+)/([a-z0-9-]+)/([a-z0-9-]+)/([a-z0-9-]+)/([a-z0-9-]+)/([a-z0-9-]+)/([a-z0-9-]+)/([a-z0-9-]+)/?$ ikoopcore/client/product.php?name=$1&price=$2&type=$3&date=$4&category=$5&city=$6&state=$7&region=$8&rayauth_user_id=$9&rayauth_token=$10 [NC,L]
    
asked by anonymous 15.05.2016 / 23:29

1 answer

1

In regular expressions back references or mirrors has the limit of 9, when you try to access $10 or apache interprets as $1 , in which case you need to rewrite logic.

References:

RewriteRule using $ 10, $ 11, $ 12, and so on

mod_rewrite number of parameters / back-references limitation

    
16.05.2016 / 17:22