Link to home
Start Free TrialLog in
Avatar of movieprodw
movieprodw

asked on

htaccces more then 10 variables

Hello,

I have more then 10 and it is resulting in $1+0 ie $1 = mesa+az and $10 = 44 the result is mesa+az0

Can you please help:

RewriteRule ^search/([a-zA-Z0-9-]+)/([a-zA-Z0-9-]+)/([0-9]+)-([0-9]+)/([0-9]+)-([0-9]+)/([a-zA-Z0-9-+]+)/([0-9]+)-([0-9]+)/([a-zA-Z0-9-+_]+)/([0-9]+) /results4.php?param=$1&task=$2&dollars0=$3&dollars1=$4&dollars0r=$5&dollars1r=$6&propertyType=$7&resultsPerPage=10&bedrooms=$8&bathrooms=$9&action=search&order=$10

Found this but I can not figure it out:
http://www.digimantra.com/tutorials/advanced-htaccess-for-more-than-10-group-of-backtrack-references/
ASKER CERTIFIED SOLUTION
Avatar of arober11
arober11
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of movieprodw
movieprodw

ASKER

Thanks, I did this then added sort_ in from of the price_desc part.

RewriteCond %{REQUEST_URI} /(sort_([A-Za-z0-9_]+))?(/.+)$
RewriteRule ^search/([a-zA-Z0-9-]+)/([a-zA-Z0-9-]+)/([0-9]+)-([0-9]+)/([0-9]+)-([0-9]+)/([a-zA-Z0-9-+|]+)/([0-9]+)-([0-9]+)/([a-zA-Z0-9-+_]+)/([0-9]+) /results4.php?param=$1&task=$2&dollars0=$3&dollars1=$4&dollars0r=$5&dollars1r=$6&propertyType=$7&resultsPerPage=10&bedrooms=$8&bathrooms=$9&action=search&order=%1
Got me on the right track, thanks