APE build 78

Helicon Ape provides support for Apache .htacces and .htpasswd configuration files for Microsoft IIS.
User avatar
Posts: 19
Joined: 03 May 2012, 19:19

APE build 78

11 May 2012, 15:46

We have been evaluating Ape and it is working well... However, I am trying now to create rules for specific virtual directories that I want to redirect to SSL. So I have this rule:

RewriteCond %{HTTPS} off
RewriteRule finance/(.*) https://myurl/$0 [R,L]

So when I goto http://myurl/finance/hello.do nothing happens.

Yet if I take off the condition it goes into a loop. I also tried checking for port 443 and that does not work. It's almost like RewriteConditions are not working....

ANy ideas?
thank you!

User avatar
Posts: 19
Joined: 03 May 2012, 19:19

Re: APE build 78

11 May 2012, 18:07

ok.. Using FireFox I can see that it goes into an infinite loop.... So the Condition is working but then it continues to do the rewrite even when the condition is satisfied...

User avatar
Posts: 871
Joined: 12 Mar 2012, 09:54

Re: APE build 78

14 May 2012, 08:25

Hello,

Please try to have it the following way:

RewriteCond %{HTTPS} ^(?!.*on.*).*
RewriteRule finance/ https://myurl%{REQUEST_URI} [NC,R=301,L]

Return to Helicon Ape

Who is online

Users browsing this forum: No registered users and 13 guests