http -> https redirection into a IIS virtual directory

Please Guide me how I would accomplish the following. -- Thanks a Bunch for Looking into this.

My IIS root is F:\inetpub\wwwroot, I have a virtual directory \example. My need is that when a user from browser types in either http://example.mycomp.org or https://example.mycomp.org he/she should be redirected to https://example.mycomp.org/example/.

By far I am familiar with http to https redirection inwhich I am able to redirect http://example.mycomp.org to https://example.mycomp.org/example/. Attached is the abstract of that from bigip.conf

But, I am not able to put forward a logic in which the users should be able to redirect from https://example.mycomp.org to https://example.mycomp.org/example/.

All your help is greatly appreciated.

BIGIP.CONF****

pool pool_example {

monitor all http

members {

10.10.10.51:http {}

10.10.10.52:http {}

}

}

rule irule_example {

when HTTP_REQUEST {

if {[HTTP::host] equals “example.mycomp.org”} {

HTTP::redirect “]”

}

else {

HTTP::respond 301 Location “http://example.mycomp.org”

}

}

virtual vs_example_0080 {

destination 15.15.15.15:http

ip protocol tcp

rules irule_example

persist pcookie_example

profiles {

http_example {}

tcp {}

}

}

virtual vs_example_0443 {

pool pool_example

destination 15.15.15.15:https

ip protocol tcp

persist pcookie_example

profiles {

example_clientssl {

clientside

}

http_example {}

tcp {}

}

}

You can use an iRule like this to redirect / to /example/ for an HTTPS virtual server with a client SSL profile:

when HTTP_REQUEST {

   if {[HTTP::path] eq "/"}{
      HTTP::redirect "/example/"
   }
}

Aaron