This forum has been moved here:
Helicon Tech Community Forum

Helicon Ape (Forum Locked Forum Locked)
 Helicon Tech : Helicon Ape
Subject Topic: Upgrading from ISAPI Rewrite 2 to APE
Author
Message |
forgottenlife
Newbie


Joined: 11 October 2009
Posts: 7
Posted: 17 March 2011 at 7:29am

Hi,

We have recently upgraded to Windows 2008 Server and switched from ISAPI Rewrite 2 to Helicon Ape.  We used the syntax converter and have successfully converted most of the rewrite rules to work in APE.  However, we are having problems getting this particular rule to work, which we originally posted here over two years ago (for original post see http://www.helicontech.com/forum/13335-Multiple_optional_parameters.html).  Please find further details below:

REWRITE RULE:
RewriteRule ^/(?!(?:blog|images)(?:/|$))(\w+)_holiday_rentals/(\w+)/(\w+)(?:/(\w+))?(?:/(\w+)\:(\d+))?(?:/(\w+)\:(\d+))?(?:/(\w+)\:(\d+))?(?:/(\w+)\:(\w+))?(?:/(\w+))?(?:/(\w+))?(?:/(\w+))?(?:/(\w+))?(?:/(\w+))?(?:/(\w+))?(?:/(\w+))?(?:/(\w+))?(?:/(\w+))?(?:/(\w+))?(?:/(\w+))?(?:/(\w+))?(?:/(\w+))?(?:/(\w+))?(?:/(\w+))?(?:/(\w+))?(?:/(\w+))?/?$ /rentals_list.asp\?location=$1&region=$2&town=$3(?4&subregion2=$4:)(?5&$5=$6:)(?7&$7=$8:)(?9&$9=$$10:)(?11&$$11=$$12:)(?13&$$13=True:)(?14&$$14=True:)(?15&$$15=True:)(?16&$$16=True:)(?17&$$17=True:)(?18&$$18=True:)(?19&$$19=True:)(?20&$$20=True:)(?21&$$21=True:)(?22&$$22=True:)(?23&$$23=True:)(?24&$$24=True:)(?25&$$25=True:)(?26&$$26=True:)(?27&$$27=True:)(?28&$$28=True:)(?29&$$29=True:) [NC,L]

Sample URLs for the above rule:

(Working)
http://www.alphaholidayrentals.com/Spain_holiday_rentals/Costa_del_Sol_Malaga/Benalmadena

(Not working)
http://www.alphaholidayrentals.com/Spain_holiday_rentals/Costa_del_Sol_Malaga/Benalmadena/Benalmadena_Costa

(ASP.NET detected invalid characters in the URL)
http://www.alphaholidayrentals.com/Spain_holiday_rentals/Costa_del_Sol_Malaga/Benalmadena/Bedrooms:2

We have been using rewrite for a while now, it's a great product, we feel that we are almost there in getting this rule to work with APE, your help is much appreciated, many thanks!

Back to Top
 
Vyacheslav
Admin Group


Joined: 02 July 2008
Location: Ukraine
Posts: 1542
Posted: 18 March 2011 at 6:15am

Hello.
Could you please provide me with rewrite.log records for the non-working request.

__________________
Slavik Shynkarenko,
Helicon Tech.
Back to Top Visit Vyacheslav's Homepage
 

Sorry, you can NOT post a reply.
This forum has been locked by a forum administrator.

Printable version Printable version