Need SSL Encryption when clicking a "LOGIN" link located on the main webpage...HELP!!!

Hi all:

I have an issue with getting my irule working…here’s the senerio..

BIGIP 2000 running software version: 4.5.13

Main URL: http://www.mydomain.com/blah/ --- THis should not be SSL

URL needing SSL: https://login.mydomain.com/blah/userlogin.asp --- points to the same back end web servers

problem:

When a user logins to http://www.mydomain.com/blah/ they should only get HTTP, however, when they click on a link when on the

main site, lets say the “login” link, they should then be redirected to the proxy for encryption, so the link needs to be changed to

https://login.mydomain.com/blah/userlogin.asp

below are my irule that i can’t seem to get working…

if (http_uri ends_with “blah/userlogin.asp”) {

redirect to “https://login.mydomain.com/%u”

}

else {

use pool APACHE_POOL

}

Please help!!

Thanks!

Anthony

Try this:

if (http_uri ends_with “/userlogin.asp”) {

redirect to “https://%h/%u”

}

else {

use pool APACHE_POOL

}