Question : htaccess rewrite

Hello,

I would like to make the below string:

http://www.dd.com/results.php?dollars0=25000&dollars1=9000000&dollars0r=800&dollars1r=1200&propertyType=condo%2B|%2Btownhome%2B|%2Bsingle%2Bfamily&resultsPerPage=10&bedrooms=1&bathrooms=1&action=search&order=price_desc&param=scottsdale+az&task=Buy

Into this:

http://www.dd.com/search/scottsdale-az/25000-9000000/800-1200/condo-townhome-single-family/1-1/desc/Buy

I tried to type it all out but when I did it just said page not found.

Can you please help me with it.

Here is what I started with:

RewriteRule ^search/([^\-]+)/([^$]+)-([^$]+) /results.php?dollars0=$2&dollars1=$3

Answer : htaccess rewrite

Per your followup question "htaccces more then 10 variables" (http://www.experts-exchange.com/Q_26294466.html) you've worked out you can only pick out 9 parameters in a single RewriteRule, but per my reply you can include additional elements extracted via a preceding RewriteCond.


Random Solutions  
 
programming4us programming4us