ucgwebmaster_95
Jul 08, 2008Nimbostratus
Using Virtual Server for http to https for certain pages
I've tried many suggestions but to no avail. I have to Virtual servers. One on port 80 and one on port 443. I need to have traffic routed to the 443 virtual server for 4 aspx pages.
ex:
http://www.helpme.com/
login.aspx
myaccount.aspx
register.aspx
/store/checkout.aspx
I was looking at a post which mentioned using the virtual command to direct traffic to a particular virtual server.
Can anyone please help me with an example here? I tried using a http class profile but to no avail. I tried using the Irule below but also it doesn't work. I am not sure what else to do here. Any help is greatly appreciated.
when HTTP_REQUEST {
switch -glob { [HTTP::host][HTTP::uri] }
{
"http://www.helpme.com/login.aspx"
{
HTTP::redirect https://[HTTP::host][HTTP::uri]
}
"http://www.helpme.com/myaccount.aspx"
{
HTTP::redirect https://[HTTP::host][HTTP::uri]
}
"http://www.helpme.com/store/CheckOut.aspx"
{
HTTP::redirect https://[HTTP::host][HTTP::uri]
}
"http://www.helpme.com/Register.aspx"
{
HTTP::redirect https://[HTTP::host][HTTP::uri]
}
}
}