Forum Discussion
nitass_89166
Aug 21, 2014Noctilucent
our requirement is any lan user access sites via http than it should be http if lan users type https than it should redirect to http. similarly if any internet users access sites via http than it should redirect to https.
can't we just use simple http/https redirection?
for example, https redirection in internet http virtual server
HTTP::redirect https://[HTTP::host][HTTP::uri]
http redirection in internal https virtual server.
HTTP::redirect http://[HTTP::host][HTTP::uri]
in addition to it i need to redirect below redirection in same irule please guide me how to do this.
is it something like this?
internet https virtual server
when HTTP_REQUEST {
if { [HTTP::host] equals "asites.abc.com" and [HTTP::uri] equals "/xyz/finance" } {
HTTP::redirect "http://asites.internet.abc.com/sites/finance"
}
}
- ShakN_167332Aug 21, 2014Nimbostratusthank you let me try this and i will get back to you.
- ShakN_167332Aug 24, 2014Nimbostratushi nitass, i will next this config by tomorow. i need help on other sites which has to be redirected similarly. when HTTP_REQUEST { if { [HTTP::host] equals "asites.abc.com" and [HTTP::uri] equals "/xyz/finance" } { HTTP::redirect "http://asites.internet.abc.com/sites/finance" } if { [HTTP::host] equals "asites.abc.com" and [HTTP::uri] equals "/xyz/budget" } { HTTP::redirect "http://asites.internet.abc.com/sites/budget" } } Can i do like this for 22 sites or else if there any other way.