Forum Discussion
Need help in Irule redirection for multiple sites.
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, 2014
Nimbostratus
thank you let me try this and i will get back to you. - ShakN_167332Aug 24, 2014
Nimbostratus
hi 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.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com