This forum has been moved here:
Helicon Tech Community Forum

Helicon Ape (Forum Locked Forum Locked)
 Helicon Tech : Helicon Ape
Subject Topic: Problems with upgrade to APE
Author
Message |
sebduggan
Newbie


Joined: 29 October 2008
Posts: 10
Posted: 15 March 2011 at 5:00am

I've just moved to a Windows 2008 server running IIS 7.5, and am having
some problems with some of my existing .htaccess files from
ISAPI_Rewrite 3.


Problem 1:

I use the following rule to ensure that a page is delivered via HTTPS:

RewriteCond %{HTTPS} off
RewriteRule .? https://%{HTTP_HOST}%{REQUEST_URI} [R=301,QSA,L]

But in APE, this rule seems to be ignored.

If I change the condition to:

RewriteCond %{HTTPS} !on

...then it goes into an infinite loop. However, if I disable the rule I can see
that the HTTPS variable is being correctly set to either "on" or "off"
depending on the protocol.


Problem 2:

Character classes don't work.

If I have a pattern which includes [[:digit:]], it doesn't match. But if I
replace this with either \d or [0-9] it matches as expected.


Are these bugs, or am I doing something wrong?
Back to Top
 
Guests
Guest


Joined: 01 October 2003
Online Status: Online
Posts: -160
Posted: 16 March 2011 at 5:31am

Hello,

1) Make sure 'RewriteEngine on' is set on top of your config.
Please, try to disable the rules and print out the value of HTTPS intesting .aspx page. To see the initial value.

2) ISAPI_Rewrite 3 and Ape have different engines. [[:digit:]] - is not supported in regular expressions in .NET, that's the reason it is not supported in APE.

Regards
Andrew
Back to Top
 

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

Printable version Printable version