How "deep" can mod rewrite go

Discuss practical ways rearrange URLs using mod_rewrite.

How "deep" can mod rewrite go

Postby ghogilee » Tue Mar 17, 2009 2:14 pm

I have a problem,
My rule is:

Code: Select all
RewriteRule ^([^/\.]+)/([^/\.]+)/make_([^/\.]+)/model_([^/\.]+)/bodytype_([^/\.]+)/yearrange_([^/\.]+)/pricerange_([^/\.]+)/country_([^/\.]+)/city_([^/\.]+)/mileage_([^/\.]+)/horsepower_([^/\.]+)/fueltype_([^/\.]+)/transmission_([^/\.]+)/color_([^/\.]+)/page_([^/\.]+)/index.html?$ index.php?lang=$1&p=$2&make=$3&model=$4&bodytype=$5&yearrange=$6&pricerange=$7&country=$8&city=$9&mileage=$10&horsepower=$11&fueltype=$12&transmission=$13&color=$14&page=$15 [L]


But I can get just first 9 variables from this. Other variables are displaying just like this :

en0
en1
en2
...

What could be the problem with this rule?
ghogilee
 
Posts: 6
Joined: Thu Mar 05, 2009 5:34 am

Postby richardk » Tue Mar 17, 2009 3:04 pm

9 is the maximum (but there is $n (RewriteRule) and %n (RewriteCond)).

I'd split it up with PHP if i were you.
richardk
 
Posts: 8800
Joined: Wed Dec 21, 2005 7:50 am

Postby ghogilee » Tue Mar 17, 2009 3:17 pm

Thanx, I didn't know that 9 is the max... :(
ghogilee
 
Posts: 6
Joined: Thu Mar 05, 2009 5:34 am


Return to Friendly URLs with Mod_Rewrite

Who is online

Users browsing this forum: No registered users and 26 guests

cron