Forum Discussion
Irule forwarding with various options
Hello,
What we done is redirect and not forwarding.
First of for https redirecting you have to create a specific VS with an http profile and irule provide by F5 that allow redirect from http to https. exemple:
VS-mysite-80 --> IP1 (with an irule for https redirect provide by F5 --> _sys_https_redirect + http profile)
VS-mysite-443 --> IP1 (same IP that VS-mysite-80) + Irule that I provide you below
VS-bettersite-80 --> IP2 (with an irule for https redirect provide by F5 --> _sys_https_redirect + http profile)
VS-bettersite-443 --> IP2 (same IP that VS-bettersite-80) + Irule that I provide you below
second time you have to create a specific IRULE for URI and Hostname redirect without taking into account https redirection.
when HTTP_REQUEST {
if { ([HTTP::uri] eq "/") && (([HTTP::host] eq "mysite.com") && ([HTTP::host] eq "www.mysite.com")) } {
HTTP::redirect https://www.bettersite.com/mysite/
}
}
Regards
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