| Posted: 24 March 2009 at 12:27pm | IP Logged
|
|
|
Hi
Thanks for your very quick response. I'm not sure how to split the rule in the way you suggest. Please can you explain how I should do this with the following rule?
# Convert "availability/*startdate/31-12-2009/*nights/14/*country/GBR/region/MAN/area/RAD/sleeps/7/proptype/C/features/CSV/cur/GBP/maxprice/1234.56"
# to "search.aspx?func=search&country=GBR®ion=MAN&area=RAD&sleeps=7&proptype=C&features=CSV&cur=GBP&maxprice=1234.56"
RewriteRule ^search/startdate/(\d{2}-\d{2}-\d{4}?)/nights/(\d+?)/country/(\w+?)(?:/region/(\w+))(?:/area/(\w+))(?:/sleeps/(\d+))(?:/proptype/(\w))(?:/features/(.+))(?:/cur/(\w+))(?:/maxprice/([0-9]*\.?[0-9]+))?/?$ search.aspx?func=search&startdate=$1&nights=$2&country=$3?4®ion=$4?5&area=$5?6&sleeps=$6?7&proptype=$7?8&features=$8?9&cur=$9?10&maxprice=$10 [NC,LP]
Many thanks
|