APE build 78
3 posts
• Page 1 of 1
APE build 78
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!
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!
Re: APE build 78
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...
Re: APE build 78
Hello,
Please try to have it the following way:
RewriteCond %{HTTPS} ^(?!.*on.*).*
RewriteRule finance/ https://myurl%{REQUEST_URI} [NC,R=301,L]
Please try to have it the following way:
RewriteCond %{HTTPS} ^(?!.*on.*).*
RewriteRule finance/ https://myurl%{REQUEST_URI} [NC,R=301,L]
3 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 13 guests