Forum Discussion
Blue_whale
Jan 14, 2020Cirrocumulus
Irule difference http to https redirect ?
Hi Team ,
What is the difference between below 2 Irules , How irule1 is different from irule2 in working ?
#Rule 1
when HTTP_REQUEST {
HTTP::redirect "https://[HTTP::host][HTTP::uri]"
}
# Rule 2
when HTTP_REQUEST {
HTTP::redirect https://[getfield [HTTP::host] ":" 1][HTTP::uri]
}
Find the below details.
Rule 1: It will simply forward the HTTP request to HTTPS. if the request will come from client i.e. http://www.xyz.com:8080/index.php then F5 iRule will redirect to 'https://www.xyz.com:8080/index.php' without changing 8080 port.
Rule 2: It is intelligent irule comparably 1st one. if the request will come from client i.e. http://www.xyz.com:8080/index.php then request will redirect to 'https://www.xyz.com/index.php'
Thanks
- Blue_whaleCirrocumulus
Thanks Samir
Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects